summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Stubbs <jstubbs@gentoo.org>2005-09-29 16:38:08 +0000
committerJason Stubbs <jstubbs@gentoo.org>2005-09-29 16:38:08 +0000
commit87906bed2f403a103bd004b0415e9a7db9db1e32 (patch)
tree23761815347ddc5416ffa7b4dbc5eee7b75835de
parentb5c16a1f99366a07b4e2d6904cd0246dc1412c02 (diff)
downloadportage-87906bed2f403a103bd004b0415e9a7db9db1e32.tar.gz
portage-87906bed2f403a103bd004b0415e9a7db9db1e32.tar.bz2
portage-87906bed2f403a103bd004b0415e9a7db9db1e32.zip
Ignore blockers when fetching.
svn path=/main/branches/2.0/; revision=2058
-rwxr-xr-xbin/emerge11
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/emerge b/bin/emerge
index 8e070a51a..a99b3add2 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -3128,7 +3128,7 @@ else:
if x[3]!="nomerge":
mergecount+=1
#check for blocking dependencies
- if x[0]=="blocks":
+ if x[0]=="blocks" and "--fetchonly" not in myopts and "--fetch-all-uri" not in myopts:
print "\n!!! Error: The above package list contains packages which cannot be installed"
print "!!! on the same system."
print
@@ -3179,7 +3179,14 @@ else:
y=portage.portdb.findname(pkgline[2])
tmpsettings = portage.config(clone=portage.settings)
retval=portage.doebuild(y,"digest",portage.root,tmpsettings,edebug,("--pretend" in myopts))
- mydepgraph.merge(mydepgraph.altlist())
+ if "--fetchonly" in myopts or "--fetch-all-uri" in myopts:
+ pkglist = []
+ for pkg in mydepgraph.altlist():
+ if pkg[0] != "blocks":
+ pkglist.append(pkg)
+ else:
+ pkglist = mydepgraph.altlist()
+ mydepgraph.merge(pkglist)
if portage.mtimedb.has_key("resume"):
del portage.mtimedb["resume"]