or I was right the first time :(
authorAlec Warner <antarus@gentoo.org>
Sun, 9 Sep 2007 00:36:21 +0000 (00:36 -0000)
committerAlec Warner <antarus@gentoo.org>
Sun, 9 Sep 2007 00:36:21 +0000 (00:36 -0000)
svn path=/main/trunk/; revision=7766

pym/portage/env/loaders.py

index 0f376a33c480c3a2e3e23d265c5cfb0d5883e9c4..1d0ca01aac4bba924601e32222feabb7e6724ad3 100644 (file)
@@ -41,7 +41,7 @@ def RecursiveFileLoader(filename):
                for root, dirs, files in os.walk(filename):
                        if 'CVS' in dirs:
                                dirs.remove('CVS')
-                       files = [f for f in files if not f.startswith('.') or not f.endswith('~')]
+                       files = [f for f in files if not f.startswith('.') and not f.endswith('~')]
                        for f in files:
                                yield os.path.join(root, f)
        else: