Make portage.listdir(ignorecvs=1) omit CVS dirs.
authorZac Medico <zmedico@gentoo.org>
Sun, 16 Jan 2011 14:20:23 +0000 (06:20 -0800)
committerZac Medico <zmedico@gentoo.org>
Sun, 16 Jan 2011 20:38:00 +0000 (12:38 -0800)
pym/portage/util/listdir.py

index f73c9702556634b29a89b4b645f43efcfd90d71d..64d1a88b510b0b552830ab16bcd67c53279534d5 100644 (file)
@@ -76,7 +76,8 @@ def cacheddir(my_original_path, ignorecvs, ignorelist, EmptyOnError, followSymli
                if list[x] in ignorelist:
                        pass
                elif ignorecvs:
-                       if list[x][:2] != ".#":
+                       if list[x][:2] != ".#" and \
+                               not (ftype[x] == 1 and list[x] in _ignorecvs_dirs):
                                ret_list.append(list[x])
                                ret_ftype.append(ftype[x])
                else: