mirror of
https://github.com/clearlinux/bundle-chroot-builder.git
synced 2026-08-18 19:45:49 +00:00
Fix whitespace issue with pkg name
Preceeding or trailing whitespaces must be stripped Signed-off-by: Brad T. Peters <brad.t.peters@intel.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user