Ignore hidden files or directories in the vardbapi.cpv_all() listing.
authorZac Medico <zmedico@gentoo.org>
Fri, 4 Aug 2006 23:04:52 +0000 (23:04 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 4 Aug 2006 23:04:52 +0000 (23:04 -0000)
svn path=/main/trunk/; revision=4153

pym/portage.py

index 03b761abfc22312d7e0fa924db05dd672a2730e8..9d5b25cf73b019ee97a25f9427dd69160c49e565 100644 (file)
@@ -4141,6 +4141,8 @@ class vardbapi(dbapi):
 
                for x in self.categories:
                        for y in listdir(basepath+x,EmptyOnError=1):
+                               if y.startswith("."):
+                                       continue
                                subpath = x+"/"+y
                                # -MERGING- should never be a cpv, nor should files.
                                if os.path.isdir(basepath+subpath) and (pkgsplit(y) is not None):