Skip to content

Commit 3eabf84

Browse files
committedApr 19, 2024
compare_packages.py: print SRPM name for each RPM
Signed-off-by: Samuel Verschelde <stormi-xcp@ylix.fr>
1 parent 7366309 commit 3eabf84

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎scripts/compare_packages.py

+3
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,14 @@ def main():
6060
if name not in rpms1:
6161
print("*** %s added" % info['filename'])
6262
print("Summary: %s" % info['summary'])
63+
print("SRPM: %s" % info['sourcerpm'])
6364
print("License: %s" % info['license'])
6465
print(subprocess.check_output(['rpm', '-qlp', info['filepath']]).decode('utf-8'))
6566
elif info.get('removed', False):
6667
print("*** %s removed" % info['filename'])
6768
if info['vendor'] not in ['CentOS', 'Fedora Project']:
6869
print("Summary: %s" % info['summary'])
70+
print("SRPM: %s" % info['sourcerpm'])
6971
print("License: %s" % info['license'])
7072
print(subprocess.check_output(['rpm', '-qlp', info['filepath']]).decode('utf-8'))
7173
else:
@@ -87,6 +89,7 @@ def main():
8789
print("Summary: %s" % info['summary'])
8890
if info['license'] != rpms1[name]['license']:
8991
print("License (previous): %s" % rpms1[name]['license'])
92+
print("SRPM: %s" % info['sourcerpm'])
9093
print("License: %s" % info['license'])
9194

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

0 commit comments

Comments
 (0)
Please sign in to comment.