From 7840983f1f6504d8b3872aecbf1e921320a56c62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Tue, 23 Feb 2010 12:06:49 +0000 Subject: [PATCH] Fix exceptions when path includes a trailing slash --- pisi/operations/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pisi/operations/build.py b/pisi/operations/build.py index d4364ea4..97e5807e 100644 --- a/pisi/operations/build.py +++ b/pisi/operations/build.py @@ -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