From 4dc3254461dee2f0f47acbe14e1333d6e7290ddc Mon Sep 17 00:00:00 2001 From: Seblu <sebastien.luttringer@smartjog.com> Date: Fri, 24 Jun 2011 13:04:26 +0200 Subject: [PATCH] script name must match the following regex \d+-.*\.py --- installsystems/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installsystems/image.py b/installsystems/image.py index d0dcc0c..5ddcb2d 100644 --- a/installsystems/image.py +++ b/installsystems/image.py @@ -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 -- GitLab