mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
zzzzz previous commit broke the info for apps, only system infos were affected
This commit is contained in:
parent
c752839f67
commit
40f48ff25c
1 changed files with 7 additions and 5 deletions
|
@ -2374,11 +2374,13 @@ def backup_info(name, with_details=False, human_readable=False):
|
|||
for category in ["apps", "system"]:
|
||||
for name, key_info in info[category].items():
|
||||
|
||||
# Stupid legacy fix for weird format between 3.5 and 3.6
|
||||
if isinstance(key_info, dict):
|
||||
key_info = key_info.keys()
|
||||
|
||||
info[category][name] = key_info = {"paths": key_info}
|
||||
if category == "system":
|
||||
# Stupid legacy fix for weird format between 3.5 and 3.6
|
||||
if isinstance(key_info, dict):
|
||||
key_info = key_info.keys()
|
||||
info[category][name] = key_info = {"paths": key_info}
|
||||
else:
|
||||
info[category][name] = key_info
|
||||
|
||||
if name in info["size_details"][category].keys():
|
||||
key_info["size"] = info["size_details"][category][name]
|
||||
|
|
Loading…
Add table
Reference in a new issue