mirror of
https://github.com/openSUSE/osc.git
synced 2025-03-01 05:32:13 +01:00
Fix crash when no prefered packages are defined
This commit is contained in:
parent
d40d68f8b4
commit
4ab81b6d44
@ -735,7 +735,7 @@ def create_build_descr_data(
|
|||||||
print("Scanning the following dirs for local preferred packages: {', '.join(dirs)}", file=sys.stderr)
|
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)
|
prefer_pkgs_result = get_prefer_pkgs(prefer_pkgs, arch, build_type, cpio_data)
|
||||||
else:
|
else:
|
||||||
prefer_pkgs_result = None
|
prefer_pkgs_result = {}
|
||||||
|
|
||||||
return cpio_data.get(), prefer_pkgs_result
|
return cpio_data.get(), prefer_pkgs_result
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user