fix: do not attempt to access non-existent config entry

This commit is contained in:
Rudra Saraswat 2026-04-04 03:30:54 +01:00
parent 384e479625
commit d492573916

View file

@ -138,10 +138,10 @@ def is_already_latest() -> bool:
json.dumps(system_config, ensure_ascii=False).strip()
== contents.strip()
):
if len(system_config["distro-config"]["needs-update"]) == 0:
if len(system_config["needs-update"]) == 0:
return False
for update_check in system_config["distro-config"]["needs-update"]:
for update_check in system_config["needs-update"]:
if (
subprocess.run(
["bash", "-s"],