From bfbcc61e23b3efc83ea97e587526959f202c9415 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Sat, 1 Oct 2005 23:24:37 +0000 Subject: [PATCH] exclude_prefix is a list. And code should check for all items in it, not just one and return... Fixes: #514 --- pisi/util.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pisi/util.py b/pisi/util.py index a61afdb0..1f280d84 100644 --- a/pisi/util.py +++ b/pisi/util.py @@ -247,8 +247,6 @@ def get_file_hashes(top, exclude_prefix=None, removePrefix=None): for p in exclude_prefix: if tempfnam.startswith(p): return 1 - else: - return 0 return 0 for root, dirs, files in os.walk(top, topdown=False):