summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-03-12 11:22:14 +0000
committerZac Medico <zmedico@gentoo.org>2006-03-12 11:22:14 +0000
commit22d1cbf2757650dd40e0303c706946474abd98aa (patch)
tree991f68917f6ce3ad14339d66a4ca9d6ec4873c35
parent816ec8fa2903f10a5dca945f8bd875299672e690 (diff)
downloadportage-22d1cbf2757650dd40e0303c706946474abd98aa.tar.gz
portage-22d1cbf2757650dd40e0303c706946474abd98aa.tar.bz2
portage-22d1cbf2757650dd40e0303c706946474abd98aa.zip
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
-rw-r--r--pym/portage.py4
1 files changed, 3 insertions, 1 deletions
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))