Catch fetch_check FileNotFound exceptions for bug #129962.
authorZac Medico <zmedico@gentoo.org>
Fri, 14 Apr 2006 21:39:35 +0000 (21:39 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 14 Apr 2006 21:39:35 +0000 (21:39 -0000)
svn path=/main/trunk/; revision=3148

pym/portage.py

index 815f3820d58629099a381fccd005702aafa1c9db..f53436ba0e9443252fa60cf3b5baa7320570b750 100644 (file)
@@ -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: