diff options
-rwxr-xr-x | bin/emerge | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/bin/emerge b/bin/emerge index ddac9edff..dee541b72 100755 --- a/bin/emerge +++ b/bin/emerge @@ -2458,6 +2458,7 @@ class depgraph: blockers.append(addl) else: mydbapi = self.trees[myroot][self.pkg_tree_map[pkg_type]].dbapi + pkg_status = x[3] binary_package = True if "ebuild" == pkg_type: if "merge" == x[3] or \ @@ -2483,10 +2484,12 @@ class depgraph: mydbapi.aux_get(pkg_key, ["RESTRICT"])[0]), uselist=self.useFlags[myroot][pkg_key])) except portage_exception.InvalidDependString, e: - restrict = mydbapi.aux_get(pkg_key, ["RESTRICT"])[0] - show_invalid_depstring_notice(x, restrict, str(e)) - del e - sys.exit(1) + if pkg_status != "nomerge": + restrict = mydbapi.aux_get(pkg_key, ["RESTRICT"])[0] + show_invalid_depstring_notice(x, restrict, str(e)) + del e + sys.exit(1) + restrict = [] if "ebuild" == pkg_type and x[3] != "nomerge" and \ "fetch" in restrict: fetch = red("F") |