summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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))