From 3eaf96b86fc9259539e4e233f451220ebccf2764 Mon Sep 17 00:00:00 2001 From: Gabi Beyer Date: Tue, 12 Sep 2017 13:48:29 -0700 Subject: [PATCH] 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 --- autospec/pkg_scan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autospec/pkg_scan.py b/autospec/pkg_scan.py index 1e14604..13303cb 100644 --- a/autospec/pkg_scan.py +++ b/autospec/pkg_scan.py @@ -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: