diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-09-30 04:06:53 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-09-30 04:06:53 +0000 |
commit | 4d0be04b105dad8bad5c4ecc4060d2fd02f6bb9d (patch) | |
tree | d0aee2df4a9fc178377f46049a6a7e69a6291dd4 | |
parent | ea08f33eb3ffe013ab37397e885e572c7d0734f7 (diff) | |
download | portage-4d0be04b105dad8bad5c4ecc4060d2fd02f6bb9d.tar.gz portage-4d0be04b105dad8bad5c4ecc4060d2fd02f6bb9d.tar.bz2 portage-4d0be04b105dad8bad5c4ecc4060d2fd02f6bb9d.zip |
Don't try to match call best_match_to_list() on "blocks" nodes for bug #149576.
svn path=/main/trunk/; revision=4566
-rwxr-xr-x | bin/emerge | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/bin/emerge b/bin/emerge index fa9b76f03..e571ceb88 100755 --- a/bin/emerge +++ b/bin/emerge @@ -715,6 +715,12 @@ class depgraph: self.spinner.update() mytype,myroot,mykey=mybigkey + if mytype == "blocks": + if addme and "--buildpkgonly" not in self.myopts and myparent: + mybigkey[1] = myparent.split()[1] + self.digraph.addnode(" ".join(mybigkey), myparent, + soft_dep=soft_dep) + return 1 if not arg: arg = portage.best_match_to_list(mykey, self.args_keys) # select the correct /var database that we'll be checking against @@ -725,18 +731,8 @@ class depgraph: # if the package is already on the system, we add a "nomerge" # directive, otherwise we add a "merge" directive. - - if mytype=="blocks": - """ We ignore blocks unless the package that is blocked is installed - We need to check vardbapi as well as the current depgraph for it. - Blocks are fatal if buildpkgonly is set. """ - if addme and "--buildpkgonly" not in self.myopts and myparent: - mybigkey[1] = myparent.split()[1] - self.digraph.addnode(" ".join(mybigkey), myparent, - soft_dep=soft_dep) - return 1 - else: - mydbapi = self.trees[myroot][self.pkg_tree_map[mytype]].dbapi + + mydbapi = self.trees[myroot][self.pkg_tree_map[mytype]].dbapi if myuse is None: self.pkgsettings[myroot].setcpv(mykey) |