summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2007-06-29 08:03:46 +0000
committerMarius Mauch <genone@gentoo.org>2007-06-29 08:03:46 +0000
commit3f826f49f215c5c673770e48af0ed80ea88381f4 (patch)
treeeb342e34a547121cbbedcccf535464e6fe3a4507
parent1559efe82a11fc72866348db442e86acf78ef846 (diff)
downloadportage-3f826f49f215c5c673770e48af0ed80ea88381f4.tar.gz
portage-3f826f49f215c5c673770e48af0ed80ea88381f4.tar.bz2
portage-3f826f49f215c5c673770e48af0ed80ea88381f4.zip
Store name of source repository in vdb node for later comparison
svn path=/main/trunk/; revision=7087
-rw-r--r--pym/portage/dbapi/vartree.py10
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))