From 41c3c4fb5fcfc37683a3d1eccc57f291b123bbed Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 11 Aug 2022 14:09:55 -0400 Subject: [PATCH] Handle metapackages If a metapackage gets pulled in as related, do not let it mess up the license list. --- genesis/getlicenses.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/genesis/getlicenses.py b/genesis/getlicenses.py index c46bcd5d..413e2abb 100644 --- a/genesis/getlicenses.py +++ b/genesis/getlicenses.py @@ -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)