We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2e4df2 commit 6d2cb9dCopy full SHA for 6d2cb9d
src/build.py
@@ -28,10 +28,10 @@
28
29
BLACKLIST_PATTERNS = [
30
# code versionning
31
- '.hg',
32
- '.git',
33
- '.bzr',
34
- '.svn',
+ '^*.hg/*',
+ '^*.git/*',
+ '^*.bzr/*',
+ '^*.svn/*',
35
36
# temp files
37
'~',
@@ -66,7 +66,11 @@ def compile_dir(dfn):
66
67
def is_blacklist(name):
68
for pattern in BLACKLIST_PATTERNS:
69
- if fnmatch(name, '*/' + pattern):
+ if pattern.startswith('^'):
70
+ pattern = pattern[1:]
71
+ else:
72
+ pattern = '*/' + pattern
73
+ if fnmatch(name, pattern):
74
return True
75
76
def make_tar(fn, source_dirs, ignore_path=[]):
0 commit comments