From b01974179c0055c26f49e2f70a812d54aa0b8a69 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Sun, 11 Sep 2022 13:31:46 +0200 Subject: [PATCH] ci: unreferenced: refactor subpackage_installs (MR 3386) Make it shorter in preparation for adding the same thing for triggers. --- .ci/testcases/test_unreferenced_files.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.ci/testcases/test_unreferenced_files.py b/.ci/testcases/test_unreferenced_files.py index cfa41a833..babd8f75e 100644 --- a/.ci/testcases/test_unreferenced_files.py +++ b/.ci/testcases/test_unreferenced_files.py @@ -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 = []