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:
Brad T. Peters
2016-04-11 15:31:20 -07:00
parent efaa5b9051
commit 18620f4efb
+1
View File
@@ -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