From 4af1dd5dd3768fd550172ad1350a260a384d9655 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 15 Nov 2022 11:46:52 -0500 Subject: [PATCH] Omit extraneous related rpms --- genesis/buildgenesis.sh | 1 + genesis/getlicenses.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/genesis/buildgenesis.sh b/genesis/buildgenesis.sh index dcf6c642..b8923aef 100644 --- a/genesis/buildgenesis.sh +++ b/genesis/buildgenesis.sh @@ -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 diff --git a/genesis/getlicenses.py b/genesis/getlicenses.py index 413e2abb..99bb8484 100644 --- a/genesis/getlicenses.py +++ b/genesis/getlicenses.py @@ -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: