Bug fixes for repoquery queryformat

Remove leading space character before queryformat command.
Remove newline, since repoquery seems to automatically
include them, and remove double quotes since they are
printed in the output.

Signed-off-by: Gabi Beyer <gabrielle.n.beyer@intel.com>
This commit is contained in:
Gabi Beyer
2017-09-12 13:48:29 -07:00
parent b87b75f46d
commit 3eaf96b86f
+1 -1
View File
@@ -37,7 +37,7 @@ def get_whatrequires(pkg):
try:
out = subprocess.check_output(['repoquery', '--config', config.yum_conf,
'--archlist=src', '--recursive', ' --queryformat="%{NAME}\n"',
'--archlist=src', '--recursive', '--queryformat=%{NAME}',
'--whatrequires', pkg]).decode('utf-8')
except subprocess.CalledProcessError as err: