]> git.ipfire.org Git - pakfire.git/blobdiff - python/pakfire/packages/lexer.py
Fix inheriting scriptlets from templates.
[pakfire.git] / python / pakfire / packages / lexer.py
index 6d2cffdaf1bc412d772d538c06f62fe2386871e8..80d97673587c8b4e563f7112a9cc40fb8548e8b9 100644 (file)
@@ -571,6 +571,12 @@ class TemplateLexer(DefaultLexer):
                # A place to store the scriptlets.
                self.scriptlets = {}
 
+       def inherit(self, other):
+               DefaultLexer.inherit(self, other)
+
+               # Inherit all scriptlets.
+               self.scriptlets.update(other.scriptlets)
+
        @property
        def definitions(self):
                definitions = {}