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:
parent
b6487df32a
commit
4af1dd5dd3
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user