diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-06-29 04:53:38 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-06-29 04:53:38 +0000 |
commit | b8c3d1f9fde25c5c5d2e505913c2b35c0b67aea4 (patch) | |
tree | cedc949156b02624b3d12b4d1e95e5b8816dad4b | |
parent | edfa3452f8d7d2a89eb5687f0c30cca9a0f14dcd (diff) | |
download | portage-b8c3d1f9fde25c5c5d2e505913c2b35c0b67aea4.tar.gz portage-b8c3d1f9fde25c5c5d2e505913c2b35c0b67aea4.tar.bz2 portage-b8c3d1f9fde25c5c5d2e505913c2b35c0b67aea4.zip |
Pass a config instance into each dep_expand call.
svn path=/main/trunk/; revision=3690
-rwxr-xr-x | bin/emerge | 2 | ||||
-rw-r--r-- | pym/portage.py | 11 |
2 files changed, 8 insertions, 5 deletions
diff --git a/bin/emerge b/bin/emerge index ed036f8e6..7d8eb79b5 100755 --- a/bin/emerge +++ b/bin/emerge @@ -869,7 +869,7 @@ class depgraph: portage.writemsg("!!! (Did you specify a version but forget to prefix with '='?)\n") return (0,[]) try: - mykey = portage.dep_expand(x, mydb=self.portdb) + mykey = portage.dep_expand(x, mydb=self.portdb, settings=self.settings) except ValueError, errpkgs: print "\n\n!!! The short ebuild name \"" + x + "\" is ambiguous. Please specify" print "!!! one of the following fully-qualified ebuild names instead:\n" diff --git a/pym/portage.py b/pym/portage.py index 4c1e2b1c5..d1174f212 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -4677,7 +4677,9 @@ class vartree(packagetree): def dep_bestmatch(self,mydep,use_cache=1): "compatibility method -- all matches, not just visible ones" #mymatch=best(match(dep_expand(mydep,self.dbapi),self.dbapi)) - mymatch=best(self.dbapi.match(dep_expand(mydep,mydb=self.dbapi),use_cache=use_cache)) + mymatch = best(self.dbapi.match( + dep_expand(mydep, mydb=self.dbapi, settings=self.settings), + use_cache=use_cache)) if mymatch is None: return "" else: @@ -5271,7 +5273,7 @@ class portdbapi(dbapi): if not mydep: #this stuff only runs on first call of xmatch() #create mydep, mykey from origdep - mydep=dep_expand(origdep,mydb=self) + mydep = dep_expand(origdep, mydb=self, settings=self.mysettings) mykey=dep_getkey(mydep) if level=="list-visible": @@ -5665,7 +5667,8 @@ class binarytree(packagetree): def exists_specific(self,cpv): if not self.populated: self.populate() - return self.dbapi.match(dep_expand("="+cpv,mydb=self.dbapi)) + return self.dbapi.match( + dep_expand("="+cpv, mydb=self.dbapi, settings=self.settings)) def dep_bestmatch(self,mydep): "compatibility method -- all matches, not just visible ones" @@ -5673,7 +5676,7 @@ class binarytree(packagetree): self.populate() writemsg("\n\n", 1) writemsg("mydep: %s\n" % mydep, 1) - mydep=dep_expand(mydep,mydb=self.dbapi) + mydep = dep_expand(mydep, mydb=self.dbapi, settings=self.settings) writemsg("mydep: %s\n" % mydep, 1) mykey=dep_getkey(mydep) writemsg("mykey: %s\n" % mykey, 1) |