ci: unreferenced: refactor subpackage_installs (MR 3386)
Make it shorter in preparation for adding the same thing for triggers.
This commit is contained in:
parent
e3904d8796
commit
b01974179c
1 changed files with 1 additions and 4 deletions
|
@ -72,10 +72,7 @@ def test_aports_unreferenced_files(args):
|
||||||
for subpackage in apkbuild["subpackages"].values():
|
for subpackage in apkbuild["subpackages"].values():
|
||||||
if not subpackage:
|
if not subpackage:
|
||||||
continue
|
continue
|
||||||
try:
|
subpackage_installs += subpackage.get("install", [])
|
||||||
subpackage_installs += subpackage["install"]
|
|
||||||
except KeyError:
|
|
||||||
continue
|
|
||||||
|
|
||||||
# Collect trigger files
|
# Collect trigger files
|
||||||
trigger_sources = []
|
trigger_sources = []
|
||||||
|
|
Loading…
Reference in a new issue