Patch by Fatih.

BUG:FIXED:8612
This commit is contained in:
Faik Uygur
2009-04-02 08:37:24 +00:00
parent 6f1fa22130
commit e6dd072d4b
+5 -2
View File
@@ -20,6 +20,7 @@ import sys
import sha
import shutil
import string
import fnmatch
import statvfs
import operator
import subprocess
@@ -349,8 +350,10 @@ def get_file_hashes(top, excludePrefix=None, removePrefix=None):
def is_included(path):
if excludePrefix:
temp = remove_prefix(removePrefix, path)
if len(filter(lambda x: temp.startswith(x), excludePrefix)) > 0:
return False
while temp != "/":
if len(filter(lambda x: fnmatch.fnmatch(temp, x), excludePrefix)) > 0:
return False
temp = os.path.dirname(temp)
return True
# single file/symlink case