summaryrefslogtreecommitdiffstats
path: root/pym/portage/env
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2007-10-05 16:40:12 +0000
committerMarius Mauch <genone@gentoo.org>2007-10-05 16:40:12 +0000
commit42d8a5dbcdbd73a97942a2c977492999dd4c0d3e (patch)
tree085909606146413aee16fa08b13b2c6267cff70b /pym/portage/env
parente63728de519acc4742bfe83f757fd7d038276952 (diff)
downloadportage-42d8a5dbcdbd73a97942a2c977492999dd4c0d3e.tar.gz
portage-42d8a5dbcdbd73a97942a2c977492999dd4c0d3e.tar.bz2
portage-42d8a5dbcdbd73a97942a2c977492999dd4c0d3e.zip
ignore missing files
svn path=/main/trunk/; revision=7948
Diffstat (limited to 'pym/portage/env')
-rw-r--r--pym/portage/env/loaders.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pym/portage/env/loaders.py b/pym/portage/env/loaders.py
index 1d0ca01aa..61bb69126 100644
--- a/pym/portage/env/loaders.py
+++ b/pym/portage/env/loaders.py
@@ -36,8 +36,9 @@ def RecursiveFileLoader(filename):
@rtype: list
@returns: List of files to process
"""
-
- if os.path.isdir(filename):
+ if not os.path.exists(filename):
+ return
+ elif os.path.isdir(filename):
for root, dirs, files in os.walk(filename):
if 'CVS' in dirs:
dirs.remove('CVS')