Make portage.unmerge return 0 on success in order to make `ebuild unmerge` exit nicel...
authorZac Medico <zmedico@gentoo.org>
Sun, 12 Mar 2006 11:22:14 +0000 (11:22 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 12 Mar 2006 11:22:14 +0000 (11:22 -0000)
svn path=/main/trunk/; revision=2862

pym/portage.py

index 4a2814dea3b923f7effb17a3d25452bc6902fa39..142735cf8143066f48f2518ed0b221337041fe8e 100644 (file)
@@ -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))