From: Michael Tremer Date: Fri, 28 Oct 2011 10:35:33 +0000 (+0200) Subject: Fix inherting templates. X-Git-Tag: 0.9.18~20^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=666d022cce65ea90ea202ebf27b9c24bf1a0b0b0;p=pakfire.git Fix inherting templates. --- diff --git a/python/pakfire/packages/lexer.py b/python/pakfire/packages/lexer.py index 9ca0e4205..06f066cdc 100644 --- a/python/pakfire/packages/lexer.py +++ b/python/pakfire/packages/lexer.py @@ -684,7 +684,8 @@ class PackageLexer(TemplateLexer): # Collect all templates. templates = self.root.templates - templates.update(self.parent.templates) + if hasattr(self.parent, "templates"): + templates.update(self.parent.templates) # Get template from parent. try: