1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-29 11:16:14 +01:00

Merge pull request #1509 from adrianschroeter/fix_crash_build

Fix crash when no prefered packages are defined
This commit is contained in:
Daniel Mach 2024-03-07 17:13:02 +01:00 committed by GitHub
commit 8c58425813
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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