summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 2b9868aca..aa0d3d5c2 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -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: