diff options
-rw-r--r-- | pym/portage/dbapi/vartree.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 61a80a1d0..ac4edbddb 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -1699,6 +1699,16 @@ class dblink(object): for x in listdir(inforoot): self.copyfile(inforoot+"/"+x) + # do we have a origin repository name for the current package + repopath = os.sep.join(self.settings["O"].split(os.sep)[:-2]) + if mydbapi != None: + for reponame in mydbapi.getRepositories(): + if mydbapi.getRepositoryPath(reponame) == repopath: + fd = open(os.path.join(self.dbtmpdir, "repository"), "w") + fd.write(reponame+"\n") + fd.close() + break + # write local package counter for recording lcfile = open(os.path.join(self.dbtmpdir, "COUNTER"),"w") lcfile.write(str(counter)) |