ignore missing files
authorMarius Mauch <genone@gentoo.org>
Fri, 5 Oct 2007 16:40:12 +0000 (16:40 -0000)
committerMarius Mauch <genone@gentoo.org>
Fri, 5 Oct 2007 16:40:12 +0000 (16:40 -0000)
svn path=/main/trunk/; revision=7948

pym/portage/env/loaders.py

index 1d0ca01aac4bba924601e32222feabb7e6724ad3..61bb6912661cfca1e297efe3257bfd9b99a17b4f 100644 (file)
@@ -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')