summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornecoro <>2006-11-29 21:40:52 +0000
committernecoro <>2006-11-29 21:40:52 +0000
commit27632a882e2577b6c2db74c80a8953b45534f9ed (patch)
treedeee480d821757b146f102c99f9f4d601fb4448b
parent65b5261924daedc85b7a3650b2883955ee6c3f44 (diff)
downloadportato-27632a882e2577b6c2db74c80a8953b45534f9ed.tar.gz
portato-27632a882e2577b6c2db74c80a8953b45534f9ed.tar.bz2
portato-27632a882e2577b6c2db74c80a8953b45534f9ed.zip
Added portage.db wherever it wants tree ... not the final solution, but it does work
-rw-r--r--portato/backend/__init__.py1
-rw-r--r--portato/backend/package.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/portato/backend/__init__.py b/portato/backend/__init__.py
index 55cb10b..ef6811f 100644
--- a/portato/backend/__init__.py
+++ b/portato/backend/__init__.py
@@ -26,6 +26,7 @@ portage.settings = None # we use our own one ...
# portage tree vars
porttree = gentoolkit.porttree
vartree = gentoolkit.vartree
+trees = portage.db
# import our packages
from exceptions import *
diff --git a/portato/backend/package.py b/portato/backend/package.py
index 8b56eb5..82e0b22 100644
--- a/portato/backend/package.py
+++ b/portato/backend/package.py
@@ -262,7 +262,7 @@ class Package (gentoolkit.Package):
# 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"), vartree.dbapi, self._settings, myuse = actual)
+ deps = portage.dep_check (self.get_env_var("RDEPEND")+" "+self.get_env_var("DEPEND")+" "+self.get_env_var("PDEPEND"), vartree.dbapi, self._settings, myuse = actual, trees = trees)
if not deps: # FIXME: what is the difference to [1, []] ?
return []