summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-01-22 00:43:44 +0000
committerZac Medico <zmedico@gentoo.org>2009-01-22 00:43:44 +0000
commitd99c1bd02d4cf6e9970a65b6f1947d4d6a9e3d91 (patch)
treec99aa65ee65317901314a77646e068ece9736666
parentce7dfb9592312a1f286861bcf32f7a3a93581671 (diff)
downloadportage-d99c1bd02d4cf6e9970a65b6f1947d4d6a9e3d91.tar.gz
portage-d99c1bd02d4cf6e9970a65b6f1947d4d6a9e3d91.tar.bz2
portage-d99c1bd02d4cf6e9970a65b6f1947d4d6a9e3d91.zip
Fix interaction between ignorelist and ignorecvs parameters inside cacheddir().
Thanks to Christian Ruppert for reporting. svn path=/main/trunk/; revision=12544
-rw-r--r--pym/portage/__init__.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 19a0ab656..77254bad4 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -252,10 +252,13 @@ def cacheddir(my_original_path, ignorecvs, ignorelist, EmptyOnError, followSymli
ret_list = []
ret_ftype = []
for x in range(0, len(list)):
- if(ignorecvs and (len(list[x]) > 2) and (list[x][:2]!=".#")):
- ret_list.append(list[x])
- ret_ftype.append(ftype[x])
- elif (list[x] not in ignorelist):
+ if list[x] in ignorelist:
+ pass
+ elif ignorecvs:
+ if list[x][:2] != ".#":
+ ret_list.append(list[x])
+ ret_ftype.append(ftype[x])
+ else:
ret_list.append(list[x])
ret_ftype.append(ftype[x])