summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-31 03:45:49 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-31 03:45:49 +0000
commita5de83bc81c775dc658de180e6692052945548f9 (patch)
tree2bcb1a88c937647ef759ea19b00257b1373270c3
parent8734eb49bcb479f35a87988b552d8667553f80ca (diff)
downloadportage-a5de83bc81c775dc658de180e6692052945548f9.tar.gz
portage-a5de83bc81c775dc658de180e6692052945548f9.tar.bz2
portage-a5de83bc81c775dc658de180e6692052945548f9.zip
Handle the ENOENT error if the world file doesn't exist.
svn path=/main/trunk/; revision=7531
-rw-r--r--pym/portage/sets/files.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/pym/portage/sets/files.py b/pym/portage/sets/files.py
index f5884eea7..a3875ada8 100644
--- a/pym/portage/sets/files.py
+++ b/pym/portage/sets/files.py
@@ -2,6 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
+import errno
import os
from portage.util import grabfile, write_atomic, ensure_dirs
@@ -52,7 +53,12 @@ class StaticFileSet(EditablePackageSet):
except (OSError, IOError):
mtime = None
if (not self._loaded or self._mtime != mtime):
- self.loader.load()
+ try:
+ self.loader.load()
+ except EnvironmentError, e:
+ if e.errno != errno.ENOENT:
+ raise
+ del e
self._setAtoms(self.loader.keys())
self._mtime = mtime