From: Zac Medico Date: Sun, 12 Mar 2006 11:22:14 +0000 (-0000) Subject: Make portage.unmerge return 0 on success in order to make `ebuild unmerge` exit nicel... X-Git-Tag: v2.1_pre7~110 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=22d1cbf2757650dd40e0303c706946474abd98aa;p=portage.git Make portage.unmerge return 0 on success in order to make `ebuild unmerge` exit nicely. Thanks to kosmikus for reporting the "Could not run the required binary?" message. svn path=/main/trunk/; revision=2862 --- diff --git a/pym/portage.py b/pym/portage.py index 4a2814dea..142735cf8 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -3092,7 +3092,9 @@ def unmerge(cat,pkg,myroot,mysettings,mytrimworld=1): mylink=dblink(cat,pkg,myroot,mysettings,treetype="vartree") if mylink.exists(): mylink.unmerge(trimworld=mytrimworld,cleanup=1) - mylink.delete() + mylink.delete() + return 0 + return 1 def isvalidatom(atom): mycpv_cps = catpkgsplit(dep_getcpv(atom))