summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-07-16 17:32:10 -0700
committerZac Medico <zmedico@gentoo.org>2011-07-16 17:32:10 -0700
commit5fd5fb57019bdf7ece0a0156e3feb4bda3da35a5 (patch)
treec93dca29ded2cdbe22968a83b7c3d91c00796ad2
parent8a3ac45d0d746b18ce6173a647518b4ddb617888 (diff)
downloadportage-5fd5fb57019bdf7ece0a0156e3feb4bda3da35a5.tar.gz
portage-5fd5fb57019bdf7ece0a0156e3feb4bda3da35a5.tar.bz2
portage-5fd5fb57019bdf7ece0a0156e3feb4bda3da35a5.zip
EbuildFetcher: handle FileNotFound
-rw-r--r--pym/_emerge/EbuildFetcher.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/_emerge/EbuildFetcher.py b/pym/_emerge/EbuildFetcher.py
index 403bb4585..32d1ccfa3 100644
--- a/pym/_emerge/EbuildFetcher.py
+++ b/pym/_emerge/EbuildFetcher.py
@@ -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