fix dirsonly handling in listdir
authorMarius Mauch <genone@gentoo.org>
Sun, 12 Feb 2006 22:56:51 +0000 (22:56 -0000)
committerMarius Mauch <genone@gentoo.org>
Sun, 12 Feb 2006 22:56:51 +0000 (22:56 -0000)
svn path=/main/trunk/; revision=2700

pym/portage.py

index 2b9868aca0e9d3935f6b8cf11278866bf5ced839..aa0d3d5c253ad3b04fbc5500f9a1cf5b4da7a3eb 100644 (file)
@@ -290,7 +290,7 @@ def listdir(mypath, recursive=False, filesonly=False, ignorecvs=False, ignorelis
        if ftype is None:
                ftype=[]
 
-       if not filesonly and not recursive:
+       if not (filesonly or dirsonly or recursive):
                return list
 
        if recursive: