From 18620f4efb7948c19241ae9e5aa406f43c271712 Mon Sep 17 00:00:00 2001 From: "Brad T. Peters" Date: Mon, 11 Apr 2016 15:31:20 -0700 Subject: [PATCH] Fix whitespace issue with pkg name Preceeding or trailing whitespaces must be stripped Signed-off-by: Brad T. Peters --- bundle-chroot-builder.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bundle-chroot-builder.py b/bundle-chroot-builder.py index e3c64ab..18345da 100755 --- a/bundle-chroot-builder.py +++ b/bundle-chroot-builder.py @@ -80,6 +80,7 @@ def install_bundle(out_dir, postfix, bundle, bundles, yum_cmd): pkgs = "".join(lines) to_install = [] for pkg in pkgs.splitlines(): + pkg = pkg.strip() # Don't add blank lines or lines with leading '#' if len(pkg) == 0 or pkg[0] == "#": continue