Remove redundant portage.listdir(ignorecvs) code.
authorZac Medico <zmedico@gentoo.org>
Sun, 16 Jan 2011 20:30:58 +0000 (12:30 -0800)
committerZac Medico <zmedico@gentoo.org>
Sun, 16 Jan 2011 20:38:07 +0000 (12:38 -0800)
The ignorecvs filtering is handled by cacheddir since commit
956a2a70446e7618ef29593ed710648ca2b1e19f.

pym/portage/util/listdir.py

index 64d1a88b510b0b552830ab16bcd67c53279534d5..d2dc1750d264057aa6e6f03df3202f2c73591743 100644 (file)
@@ -125,8 +125,7 @@ def listdir(mypath, recursive=False, filesonly=False, ignorecvs=False, ignorelis
        if recursive:
                x=0
                while x<len(ftype):
-                       if ftype[x] == 1 and not \
-                               (ignorecvs and os.path.basename(list[x]) in _ignorecvs_dirs):
+                       if ftype[x] == 1:
                                l,f = cacheddir(mypath+"/"+list[x], ignorecvs, ignorelist, EmptyOnError,
                                        followSymlinks)