EbuildFetcher: handle FileNotFound
authorZac Medico <zmedico@gentoo.org>
Sun, 17 Jul 2011 00:32:10 +0000 (17:32 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 17 Jul 2011 00:32:10 +0000 (17:32 -0700)
pym/_emerge/EbuildFetcher.py

index 403bb45859dc1b14d170e6521e86c1dcf51ba041..32d1ccfa347d19242efc5a0bd5e0e298cd94395f 100644 (file)
@@ -82,6 +82,9 @@ class EbuildFetcher(SpawnProcess):
                                if not ok:
                                        success = False
                                        break
+               except portage.exception.FileNotFound:
+                       # A file disappeared unexpectedly.
+                       return False
                finally:
                        sys.stdout = stdout_orig
                        sys.stderr = stderr_orig