]> git.ipfire.org Git - pakfire.git/commitdiff
Allow using make variables in scriptlets.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Oct 2011 08:49:06 +0000 (10:49 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Oct 2011 08:49:06 +0000 (10:49 +0200)
python/pakfire/packages/lexer.py

index a9e9324f1bdba2330d483bf0458df7af7625f838..069ce8393cd086f9304d4e40bd80127270add86a 100644 (file)
@@ -644,7 +644,7 @@ class TemplateLexer(DefaultLexer):
 
                self.scriptlets[name] = {
                        "lang"      : "shell",
-                       "scriptlet" : "\n".join(lines),
+                       "scriptlet" : self.expand_string("\n".join(lines)),
                }