From 56e26e3c64f2afb7701f6c0c0562b885951bfab2 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 15 Mar 2006 13:48:17 +0000 Subject: [PATCH] Check the return value of prepare_build_dirs and return early from doebuild if necessary. svn path=/main/trunk/; revision=2895 --- pym/portage.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pym/portage.py b/pym/portage.py index c548fbe97..a5350bcde 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -2697,7 +2697,9 @@ def doebuild(myebuild,mydo,myroot,mysettings,debug=0,listonly=0,fetchonly=0,clea logfile=None # Build directory creation isn't required for any of these. if mydo not in ["fetch","digest","manifest"]: - prepare_build_dirs(myroot, mysettings, cleanup) + mystatus = prepare_build_dirs(myroot, mysettings, cleanup) + if mystatus: + return mystatus if mydo=="unmerge": return unmerge(mysettings["CATEGORY"],mysettings["PF"],myroot,mysettings) -- 2.26.2