summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-02-01 01:54:01 -0800
committerZac Medico <zmedico@gentoo.org>2011-02-02 15:28:04 -0800
commitb426f852d8d78c70902c1ae972737cf53e7f168d (patch)
tree048d0105769032c385b477abed79b76a6a4adce6
parent74430dc75ff1bd2ef650619f9106983735bbc9fb (diff)
downloadportage-b426f852d8d78c70902c1ae972737cf53e7f168d.tar.gz
portage-b426f852d8d78c70902c1ae972737cf53e7f168d.tar.bz2
portage-b426f852d8d78c70902c1ae972737cf53e7f168d.zip
doebuild: always return success for listonly mode
This compensates for changed fetch() return value in commit 394cd4a00d37fd078f8dd40f89f8c810355d7816, which serves to trigger the pkg_nofetch phase inside doebuild().
-rw-r--r--pym/portage/package/ebuild/doebuild.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pym/portage/package/ebuild/doebuild.py b/pym/portage/package/ebuild/doebuild.py
index 6fc7489aa..bbc3a4a12 100644
--- a/pym/portage/package/ebuild/doebuild.py
+++ b/pym/portage/package/ebuild/doebuild.py
@@ -737,6 +737,12 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
if not fetch(fetchme, mysettings, listonly=listonly,
fetchonly=fetchonly):
spawn_nofetch(mydbapi, myebuild, settings=mysettings)
+ if listonly:
+ # The convention for listonly mode is to report
+ # success in any case, even though fetch() may
+ # return unsuccessfully in order to trigger the
+ # nofetch phase.
+ return 0
return 1
if mydo == "fetch":