mirror of
https://github.com/clearlinux/bundle-chroot-builder.git
synced 2026-08-22 05:25:48 +00:00
Filter yum output for parsing with yum plugins
Dependeing if plugins are enabled when yum is directed to honor plugin usage, the output from yum list changes, and has the potential to break the creation of the versions file. Suppressing this additional plugin output by operating yum in quiet mode avoids this risk. Signed-off-by: George T Kramer <george.t.kramer@intel.com>
This commit is contained in:
@@ -300,7 +300,7 @@ def create_chroots(args, state_dir, bundles, yum_conf):
|
||||
|
||||
print("Noting os-core package list")
|
||||
with open(out_dir + "/versions", "w") as file:
|
||||
subprocess.Popen(yum_cmd + ["--installroot={}/os-core".format(out_dir), "list"], stdout=file).wait()
|
||||
subprocess.Popen(yum_cmd + ["--quiet", "--installroot={}/os-core".format(out_dir), "list"], stdout=file).wait()
|
||||
with open(out_dir + "/packages-os-core", "w") as file:
|
||||
subprocess.Popen(['rpm', '--root={}/os-core'.format(out_dir),
|
||||
'-qa', '--queryformat', '%{NAME}\t%{SOURCERPM}\n'], stdout=file).wait()
|
||||
|
||||
Reference in New Issue
Block a user