summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/sets/files.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/pym/portage/sets/files.py b/pym/portage/sets/files.py
index cc4862cc8..683756ec5 100644
--- a/pym/portage/sets/files.py
+++ b/pym/portage/sets/files.py
@@ -79,11 +79,12 @@ class StaticFileSet(EditablePackageSet):
atoms = []
for a in data.keys():
matches = self.dbapi.match(a)
- if len(matches) > 1:
- for cpv in matches:
- atoms.append(dep_getkey(cpv)+":"+self.dbapi.aux_get(cpv, ["SLOT"])[0])
- else:
- atoms.append(a)
+ for cpv in matches:
+ atoms.append("%s:%s" % (cpv_getkey(cpv),
+ self.dbapi.aux_get(cpv, ["SLOT"])[0]))
+ # In addition to any installed slots, also try to pull
+ # in the latest new slot that may be available.
+ atoms.append(a)
else:
atoms = data.keys()
self._setAtoms(atoms)