fix: handle missing /system.yaml lists better

This commit is contained in:
Rudra B.S. 2023-11-20 16:59:57 +05:30
parent 2fc74367c9
commit 70ad8b5df7

View file

@ -199,6 +199,8 @@ def update_system():
if type(res[i]) is list: if type(res[i]) is list:
if type(blend_release.get(i)) is list: if type(blend_release.get(i)) is list:
blend_release[i] += res[i] blend_release[i] += res[i]
else:
blend_release[i] = res[i]
if type(blend_release.get('packages')) == list: if type(blend_release.get('packages')) == list:
packages += blend_release.get('packages') packages += blend_release.get('packages')