summaryrefslogtreecommitdiff
path: root/portato
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--portato/backend/portage/package.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/portato/backend/portage/package.py b/portato/backend/portage/package.py
index 4cf3d12..2c913f9 100644
--- a/portato/backend/portage/package.py
+++ b/portato/backend/portage/package.py
@@ -170,12 +170,9 @@ class PortagePackage (Package):
depstring = ""
try:
- for d in depvar:
- depstring += self.get_package_settings(d, installed = False)+" "
+ depstring = " ".join(self.get_package_settings(d, installed = False) for d in depvar)
except KeyError: # not found in porttree - use vartree
- depstring = ""
- for d in depvar:
- depstring += self.get_package_settings(d, installed = True)+" "
+ depstring = " ".join(self.get_package_settings(d, installed = True) for d in depvar)
deps = portage.dep_check(depstring, None, self._settings.settings, myuse = actual, trees = self._trees)