allow getRPMHeaders to get all headers if none are explicitly requested

This commit is contained in:
Christopher O'Brien 2020-07-22 11:11:51 -04:00 committed by Tomas Kopecek
parent ace354a15c
commit 22fcdc1ad2
2 changed files with 7 additions and 3 deletions

View file

@ -11670,8 +11670,7 @@ class RootExports(object):
is not valid or the rpm does not exist on the file system, an empty map
will be returned.
"""
if not headers:
headers = []
if rpmID:
rpm_info = get_rpm(rpmID)
if not rpm_info or not rpm_info['build_id']: