ci: unreferenced: refactor subpackage_installs (MR 3386)

Make it shorter in preparation for adding the same thing for triggers.
This commit is contained in:
Oliver Smith 2022-09-11 13:31:46 +02:00
parent e3904d8796
commit b01974179c
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -72,10 +72,7 @@ def test_aports_unreferenced_files(args):
for subpackage in apkbuild["subpackages"].values():
if not subpackage:
continue
try:
subpackage_installs += subpackage["install"]
except KeyError:
continue
subpackage_installs += subpackage.get("install", [])
# Collect trigger files
trigger_sources = []