2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-12-24 12:11:52 +00:00

Handle metapackages

If a metapackage gets pulled in
as related, do not let it mess up
the license list.
This commit is contained in:
Jarrod Johnson 2022-08-11 14:09:55 -04:00
parent 7b3c1e5405
commit 41c3c4fb5f

View File

@ -35,6 +35,8 @@ for rpm in rpmlist:
for relrpm in srpmtorpm[srpm]:
liclist = runcmd(f'rpm -qL {relrpm}')
for lic in liclist:
if lic == '(contains no files)':
continue
licenses.add(lic)
for lic in sorted(licenses):
print(lic)