diff options
author | necoro <> | 2007-08-16 17:33:21 +0000 |
---|---|---|
committer | necoro <> | 2007-08-16 17:33:21 +0000 |
commit | ae63d36e760b749b97332915b8a91dd6f9ece199 (patch) | |
tree | d1e97dcee9a31a3605b9ca6b3a143c81e5662afd /portato/backend | |
parent | b48d1b86ad5dc9ec069be256c37d9571759111b8 (diff) | |
download | portato-ae63d36e760b749b97332915b8a91dd6f9ece199.tar.gz portato-ae63d36e760b749b97332915b8a91dd6f9ece199.tar.bz2 portato-ae63d36e760b749b97332915b8a91dd6f9ece199.zip |
improved update-world
Diffstat (limited to 'portato/backend')
-rw-r--r-- | portato/backend/portage/package.py | 9 |
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) |