instantiate RuntimeBuilder/TreeBuilder with keyword args

This commit is contained in:
Will Woods 2011-06-22 19:22:33 -04:00
parent 7ed705bf09
commit d322180dce

View File

@ -183,7 +183,8 @@ class Lorax(BaseLoraxClass):
logger.debug("product data: %s" % product) logger.debug("product data: %s" % product)
templatedir = self.conf.get("lorax", "sharedir") templatedir = self.conf.get("lorax", "sharedir")
rb = RuntimeBuilder(self.product, self.arch, ybo, templatedir) rb = RuntimeBuilder(product=self.product, arch=self.arch,
yum=ybo, templatedir=templatedir)
logger.info("installing runtime packages") logger.info("installing runtime packages")
rb.yum.conf.skip_broken = self.conf.getboolean("yum", "skipbroken") rb.yum.conf.skip_broken = self.conf.getboolean("yum", "skipbroken")
@ -223,9 +224,9 @@ class Lorax(BaseLoraxClass):
rb.create_runtime(runtime) rb.create_runtime(runtime)
logger.info("preparing to build output tree and boot images") logger.info("preparing to build output tree and boot images")
treebuilder = TreeBuilder(self.product, self.arch, treebuilder = TreeBuilder(product=self.product, arch=self.arch,
installroot, self.outputdir, inroot=installroot, outroot=self.outputdir,
templatedir) templatedir=templatedir)
logger.info("rebuilding initramfs images") logger.info("rebuilding initramfs images")
treebuilder.rebuild_initrds(add_args=["--xz"]) treebuilder.rebuild_initrds(add_args=["--xz"])