Add runtime basename variable to the template

Related: rhbz#782108
This commit is contained in:
Martin Gracik 2012-02-07 11:03:09 +01:00
parent 17179f2120
commit d26c41fee6

View File

@ -158,6 +158,7 @@ class TreeBuilder(object):
# NOTE: if you pass an arg named "runtime" to a mako template it'll # NOTE: if you pass an arg named "runtime" to a mako template it'll
# clobber some mako internal variables - hence "runtime_img". # clobber some mako internal variables - hence "runtime_img".
self.vars = DataHolder(arch=arch, product=product, runtime_img=runtime, self.vars = DataHolder(arch=arch, product=product, runtime_img=runtime,
runtime_base=basename(runtime),
inroot=inroot, outroot=outroot, inroot=inroot, outroot=outroot,
basearch=arch.basearch, libdir=arch.libdir, basearch=arch.basearch, libdir=arch.libdir,
isolabel=isolabel, udev=udev_escape) isolabel=isolabel, udev=udev_escape)