summaryrefslogtreecommitdiffstats
path: root/pym/portage/dbapi/bintree.py
diff options
context:
space:
mode:
authorMichał Górny <gentoo@mgorny.alt.pl>2010-07-05 11:21:23 +0200
committerZac Medico <zmedico@gentoo.org>2010-07-27 16:13:16 -0700
commitad54ccc5c9dff04ffa47daf87f1364e6ec17a9ef (patch)
tree2fb42e2ee59ebb7c235738dd07950b28568e40fc /pym/portage/dbapi/bintree.py
parent53f820a855cc9c817424c4705ca6f7b72b63e31e (diff)
downloadportage-ad54ccc5c9dff04ffa47daf87f1364e6ec17a9ef.tar.gz
portage-ad54ccc5c9dff04ffa47daf87f1364e6ec17a9ef.tar.bz2
portage-ad54ccc5c9dff04ffa47daf87f1364e6ec17a9ef.zip
Support repository-wide updates.
Support reading repository-wide update files. Apply them as long as the 'repository' for vardb entry matches the repository update is originating from. For world and configuration files, use the best vardb match.
Diffstat (limited to 'pym/portage/dbapi/bintree.py')
-rw-r--r--pym/portage/dbapi/bintree.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py
index 080f9e5ff..84c51a977 100644
--- a/pym/portage/dbapi/bintree.py
+++ b/pym/portage/dbapi/bintree.py
@@ -288,7 +288,7 @@ class binarytree(object):
remotepkgs = property(_get_remotepkgs, _set_remotepkgs, _del_remotepkgs,
"Deprecated self.remotepkgs, only for backward compatibility")
- def move_ent(self, mylist):
+ def move_ent(self, mylist, repo_name = None):
if not self.populated:
self.populate()
origcp = mylist[1]
@@ -307,6 +307,8 @@ class binarytree(object):
if mycpv_cp != origcp:
# Ignore PROVIDE virtual match.
continue
+ if repo_name and self.aux_get(mycpv, ['repository'])[0] != repo_name:
+ continue
mynewcpv = mycpv.replace(mycpv_cp, str(newcp), 1)
myoldpkg = catsplit(mycpv)[1]
mynewpkg = catsplit(mynewcpv)[1]