From 666d022cce65ea90ea202ebf27b9c24bf1a0b0b0 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 28 Oct 2011 12:35:33 +0200 Subject: [PATCH] Fix inherting templates. --- python/pakfire/packages/lexer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- 2.39.5