From 956a2a70446e7618ef29593ed710648ca2b1e19f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 16 Jan 2011 06:20:23 -0800 Subject: Make portage.listdir(ignorecvs=1) omit CVS dirs. --- pym/portage/util/listdir.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/portage/util/listdir.py b/pym/portage/util/listdir.py index f73c97025..64d1a88b5 100644 --- a/pym/portage/util/listdir.py +++ b/pym/portage/util/listdir.py @@ -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: -- cgit v1.2.3-1-g7c22