diff options
author | necoro <> | 2007-01-24 23:44:31 +0000 |
---|---|---|
committer | necoro <> | 2007-01-24 23:44:31 +0000 |
commit | e0c70e1133b12341a9f14f68e00a44c1a7ea5a18 (patch) | |
tree | 5c6a556633ba872cc199412592e6c1cd79334ece /portato/backend/package.py | |
parent | 3a1d0db1f30133bae568341428d427cf5a5d0495 (diff) | |
download | portato-e0c70e1133b12341a9f14f68e00a44c1a7ea5a18.tar.gz portato-e0c70e1133b12341a9f14f68e00a44c1a7ea5a18.tar.bz2 portato-e0c70e1133b12341a9f14f68e00a44c1a7ea5a18.zip |
Small enhancements
Diffstat (limited to '')
-rw-r--r-- | portato/backend/package.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/portato/backend/package.py b/portato/backend/package.py index 15dd59a..436b5e1 100644 --- a/portato/backend/package.py +++ b/portato/backend/package.py @@ -260,7 +260,7 @@ class Package: return retlist - def get_dep_packages (self): + def get_dep_packages (self, depvar = ["RDEPEND", "PDEPEND", "DEPEND"]): """Returns a cpv-list of packages on which this package depends and which have not been installed yet. This does not check the dependencies in a recursive manner. @returns: list of cpvs on which the package depend @@ -282,9 +282,13 @@ class Package: elif u not in actual: actual.append(u) + depstring = "" + for d in depvar: + depstring += self.get_env_var(d)+" " + # let portage do the main stuff ;) # pay attention to any changes here - deps = portage.dep_check (self.get_env_var("RDEPEND")+" "+self.get_env_var("DEPEND")+" "+self.get_env_var("PDEPEND"), portage_settings.vartree.dbapi, self._settings, myuse = actual, trees = self._trees) + deps = portage.dep_check (depstring, portage_settings.vartree.dbapi, self._settings, myuse = actual, trees = self._trees) if not deps: # FIXME: what is the difference to [1, []] ? return [] |