Fix exceptions when path includes a trailing slash

This commit is contained in:
Fatih Aşıcı
2010-02-23 12:06:49 +00:00
parent dadaf38196
commit 7840983f1f
+1 -1
View File
@@ -72,7 +72,7 @@ def get_file_type(path, pinfo_list):
elif fnmatch.fnmatch(path, pinfo.path):
glob_match = pinfo
elif fnmatch.fnmatch(path, "%s/*" % pinfo.path):
elif fnmatch.fnmatch(path, pisi.util.join_path(pinfo.path, "*")):
if parent_match is None or parent_match.path < pinfo.path:
parent_match = pinfo