From: Zac Medico Date: Thu, 18 May 2006 07:22:24 +0000 (-0000) Subject: Catch PackageNotFound exceptions from unmerge() for bug #133606. X-Git-Tag: v2.1_rc2~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1ffb45442754456d89ab6a5533f86c21edc06a23;p=portage.git Catch PackageNotFound exceptions from unmerge() for bug #133606. svn path=/main/trunk/; revision=3371 --- 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"])