Skip to content
Snippets Groups Projects
Commit 4dc32544 authored by Seblu's avatar Seblu
Browse files

script name must match the following regex \d+-.*\.py

parent e90bc29f
No related branches found
No related tags found
No related merge requests found
......@@ -244,7 +244,7 @@ class SourceImage(Image):
'''
Filter files which can be included in scripts tarball
'''
if not tinfo.name in ("parser", "setup") and os.path.splitext(tinfo.name)[1] != ".py":
if not re.match("(parser|setup)(/\d+-.*\.py)?$", tinfo.name):
return None
tinfo.mode = 0755
tinfo.uid = tinfo.gid = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment