Commit 4dc32544 authored by Seblu's avatar Seblu
Browse files

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

parent e90bc29f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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