From d26c41fee621c82e5db8087bdfb1e89d1f82ca9d Mon Sep 17 00:00:00 2001 From: Martin Gracik Date: Tue, 7 Feb 2012 11:03:09 +0100 Subject: [PATCH] Add runtime basename variable to the template Related: rhbz#782108 --- src/pylorax/treebuilder.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pylorax/treebuilder.py b/src/pylorax/treebuilder.py index 12fdcf9b..7d092fe8 100644 --- a/src/pylorax/treebuilder.py +++ b/src/pylorax/treebuilder.py @@ -158,6 +158,7 @@ class TreeBuilder(object): # NOTE: if you pass an arg named "runtime" to a mako template it'll # clobber some mako internal variables - hence "runtime_img". self.vars = DataHolder(arch=arch, product=product, runtime_img=runtime, + runtime_base=basename(runtime), inroot=inroot, outroot=outroot, basearch=arch.basearch, libdir=arch.libdir, isolabel=isolabel, udev=udev_escape)