Always ignore hidden files when generating Manifests. Thanks to Christian
authorZac Medico <zmedico@gentoo.org>
Sat, 31 Jan 2009 20:29:17 +0000 (20:29 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 31 Jan 2009 20:29:17 +0000 (20:29 -0000)
Ruppert for reporting.

svn path=/main/trunk/; revision=12566

pym/portage/manifest.py

index 384da250a13ee9239fce83a3c35b4c0825eb8dbc..0fc0a6b4a2a2c28719a005549685c2a76bc52c9c 100644 (file)
@@ -291,7 +291,9 @@ class Manifest(object):
                for pkgdir, pkgdir_dirs, pkgdir_files in os.walk(self.pkgdir):
                        break
                for f in pkgdir_files:
-                       if f.endswith(".ebuild"):
+                       if f[:1] == ".":
+                               continue
+                       elif f[-7:] == ".ebuild":
                                mytype = "EBUILD"
                                pf = f[:-7]
                                ps = portage.versions.pkgsplit(pf)