From 64d1c57a97f56df9a4e96f8a0a4efa98bf7de010 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 14 Apr 2006 21:39:35 +0000 Subject: [PATCH] Catch fetch_check FileNotFound exceptions for bug #129962. svn path=/main/trunk/; revision=3148 --- pym/portage.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pym/portage.py b/pym/portage.py index 815f3820d..f53436ba0 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -4820,7 +4820,12 @@ class portdbapi(dbapi): ok = False reason = "digest missing" else: - ok,reason = portage_checksum.verify_all(self.mysettings["DISTDIR"]+"/"+x, mysums[x]) + try: + ok, reason = portage_checksum.verify_all( + os.path.join(self.mysettings["DISTDIR"], x), mysums[x]) + except portage_exception.FileNotFound, e: + ok = False + reason = "File Not Found: '%s'" % str(e) if not ok: failures[x] = reason if failures: -- 2.26.2