From 4ab81b6d445a2698b56a0ccb9cc3933d2f2f6a79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 7 Mar 2024 16:28:00 +0100 Subject: [PATCH] Fix crash when no prefered packages are defined --- osc/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/build.py b/osc/build.py index 5d6a2d86..f22e4b8d 100644 --- a/osc/build.py +++ b/osc/build.py @@ -735,7 +735,7 @@ def create_build_descr_data( print("Scanning the following dirs for local preferred packages: {', '.join(dirs)}", file=sys.stderr) prefer_pkgs_result = get_prefer_pkgs(prefer_pkgs, arch, build_type, cpio_data) else: - prefer_pkgs_result = None + prefer_pkgs_result = {} return cpio_data.get(), prefer_pkgs_result