code: def getRepositories(self):
          
          if self.srcdir and not self.duplicate:
              return self.srcdir.get_all_rdirs() + self.repositories
          return self.repositories
docs: Returns a list of repositories for this directory.