* [gentoo-commits] portage r12239 - main/branches/2.1.6/pym/portage/dbapi
@ 2008-12-12 21:48 Zac Medico (zmedico)
0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2008-12-12 21:48 UTC (permalink / raw
To: gentoo-commits
Author: zmedico
Date: 2008-12-12 21:48:56 +0000 (Fri, 12 Dec 2008)
New Revision: 12239
Modified:
main/branches/2.1.6/pym/portage/dbapi/bintree.py
Log:
Fix old-style binhost code binarytree.digestCheck() will use local digests when
a local package overrides a remote one. (trunk r12208)
Modified: main/branches/2.1.6/pym/portage/dbapi/bintree.py
===================================================================
--- main/branches/2.1.6/pym/portage/dbapi/bintree.py 2008-12-12 21:45:18 UTC (rev 12238)
+++ main/branches/2.1.6/pym/portage/dbapi/bintree.py 2008-12-12 21:48:56 UTC (rev 12239)
@@ -740,6 +740,11 @@
continue
mycat = self.remotepkgs[mypkg]["CATEGORY"].strip()
fullpkg = mycat+"/"+mypkg[:-5]
+
+ if not getbinpkgsonly and fullpkg in metadata:
+ # Local package overrides the remote one.
+ continue
+
if not self.dbapi._category_re.match(mycat):
writemsg(("!!! Remote binary package has an " + \
"unrecognized category: '%s'\n") % fullpkg,
@@ -754,10 +759,10 @@
# invalid tbz2's can hurt things.
#print "cpv_inject("+str(fullpkg)+")"
self.dbapi.cpv_inject(fullpkg)
- metadata = self.remotepkgs[mypkg]
- for k, v in metadata.items():
- metadata[k] = v.strip()
- self._remotepkgs[fullpkg] = metadata
+ remote_metadata = self.remotepkgs[mypkg]
+ for k, v in remote_metadata.items():
+ remote_metadata[k] = v.strip()
+ self._remotepkgs[fullpkg] = remote_metadata
#print " -- Injected"
except SystemExit, e:
raise
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-12-12 21:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-12 21:48 [gentoo-commits] portage r12239 - main/branches/2.1.6/pym/portage/dbapi Zac Medico (zmedico)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox