summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-05-18 07:22:24 +0000
committerZac Medico <zmedico@gentoo.org>2006-05-18 07:22:24 +0000
commit1ffb45442754456d89ab6a5533f86c21edc06a23 (patch)
tree04895025ad246dfc77b10b43e0e1caead68d4288
parent548ffc4402a7474a65a396a145330a3a0538863e (diff)
downloadportage-1ffb45442754456d89ab6a5533f86c21edc06a23.tar.gz
portage-1ffb45442754456d89ab6a5533f86c21edc06a23.tar.bz2
portage-1ffb45442754456d89ab6a5533f86c21edc06a23.zip
Catch PackageNotFound exceptions from unmerge() for bug #133606.
svn path=/main/trunk/; revision=3371
-rwxr-xr-xbin/emerge5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/emerge b/bin/emerge
index fd50f725d..2cb627dbf 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -2075,7 +2075,10 @@ class depgraph:
xsplit=portage.pkgsplit(x[2])
emergelog(" >>> AUTOCLEAN: "+xsplit[0])
if x[1] == self.pkgsettings["ROOT"]:
- retval = unmerge("clean", [xsplit[0]])
+ try:
+ retval = unmerge("clean", [xsplit[0]])
+ except portage_exception.PackageNotFound:
+ retval = 0
else:
retval = unmerge_overlapping(x[2], x[1],
self.pkgsettings, portage.db[x[1]]["vartree"])