diff options
Diffstat (limited to 'pym/portage/dbapi/__init__.py')
-rw-r--r-- | pym/portage/dbapi/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/portage/dbapi/__init__.py b/pym/portage/dbapi/__init__.py index 2467cb54e..c2e7989b8 100644 --- a/pym/portage/dbapi/__init__.py +++ b/pym/portage/dbapi/__init__.py @@ -230,10 +230,11 @@ class dbapi(object): if onProgress: onProgress(maxval, i+1) - def move_slot_ent(self, mylist): + def move_slot_ent(self, mylist, repo_name = None): """This function takes a sequence: Args: mylist: a sequence of (package, originalslot, newslot) + repo_name: repository from which update is originated Returns: The number of slotmoves this function did """ @@ -248,6 +249,8 @@ class dbapi(object): slot = self.aux_get(mycpv, ["SLOT"])[0] if slot != origslot: continue + if repo_name and self.aux_get(mycpv, ['repository'])[0] != repo_name: + continue moves += 1 mydata = {"SLOT": newslot+"\n"} self.aux_update(mycpv, mydata) |