mirror of
https://github.com/clearlinux/autospec.git
synced 2026-08-20 22:17:57 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user