Skip to content

Commit

Permalink
compare_packages.py: print SRPM name for each RPM
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Verschelde <[email protected]>
  • Loading branch information
stormi committed Apr 19, 2024
1 parent 7366309 commit 3eabf84
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/compare_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,14 @@ def main():
if name not in rpms1:
print("*** %s added" % info['filename'])
print("Summary: %s" % info['summary'])
print("SRPM: %s" % info['sourcerpm'])
print("License: %s" % info['license'])
print(subprocess.check_output(['rpm', '-qlp', info['filepath']]).decode('utf-8'))
elif info.get('removed', False):
print("*** %s removed" % info['filename'])
if info['vendor'] not in ['CentOS', 'Fedora Project']:
print("Summary: %s" % info['summary'])
print("SRPM: %s" % info['sourcerpm'])
print("License: %s" % info['license'])
print(subprocess.check_output(['rpm', '-qlp', info['filepath']]).decode('utf-8'))
else:
Expand All @@ -87,6 +89,7 @@ def main():
print("Summary: %s" % info['summary'])
if info['license'] != rpms1[name]['license']:
print("License (previous): %s" % rpms1[name]['license'])
print("SRPM: %s" % info['sourcerpm'])
print("License: %s" % info['license'])

print(subprocess.check_output("rpmdiff -iT %s %s 2>&1 || echo" % (rpms1[name]['filepath'], info['filepath']),
Expand Down

0 comments on commit 3eabf84

Please sign in to comment.