summaryrefslogtreecommitdiff
path: root/portato/backend
diff options
context:
space:
mode:
Diffstat (limited to 'portato/backend')
-rw-r--r--portato/backend/portage/package.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/portato/backend/portage/package.py b/portato/backend/portage/package.py
index 65522ec..2a2d81a 100644
--- a/portato/backend/portage/package.py
+++ b/portato/backend/portage/package.py
@@ -137,8 +137,13 @@ class PortagePackage (Package):
actual = self.get_actual_use_flags()
depstring = ""
- for d in depvar:
- depstring += self.get_package_settings(d, tree = self._settings.porttree)+" "
+ try:
+ for d in depvar:
+ depstring += self.get_package_settings(d, tree = self._settings.porttree)+" "
+ except KeyError: # not found in porttree - use vartree
+ depstring = ""
+ for d in depvar:
+ depstring += self.get_package_settings(d, tree = self._settings.vartree)+" "
deps = portage.dep_check(depstring, None, self._settings.settings, myuse = actual, trees = self._trees)