2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 11:01:09 +00:00

Omit extraneous related rpms

This commit is contained in:
Jarrod Johnson 2022-11-15 11:46:52 -05:00
parent b6487df32a
commit 4af1dd5dd3
2 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,7 @@ pushd $tdir
xzcat distribution|cpio -dumi
rm distribution
find . -type f -exec rpm -qf /{} \; 2> /dev/null | grep -v 'not owned' | sort -u > $tfile
find . -type f -printf "%p: " -exec rpm -qf /{} \; 2> /dev/null | grep -v 'not owned' > /tmp/attributedrpmlist
popd
rm -rf $tdir
cp $tfile rpmlist

View File

@ -32,6 +32,8 @@ for rpm in rpmlist:
if not rpm:
continue
srpm = rpmtosrpm[rpm]
if srpm.startswith('linux-firmware'):
continue
for relrpm in srpmtorpm[srpm]:
liclist = runcmd(f'rpm -qL {relrpm}')
for lic in liclist: