mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
backups: Include app versions in manifest file
Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
parent
5c12403137
commit
e815256b22
@ -77,7 +77,11 @@ def _backup_handler(packet):
|
||||
os.makedirs(MANIFESTS_FOLDER)
|
||||
|
||||
manifest_path = MANIFESTS_FOLDER + packet.label + '.json'
|
||||
manifests = {x[0]: x[2] for x in packet.manifests}
|
||||
manifests = [{
|
||||
'name': x[0],
|
||||
'version': x[1].version,
|
||||
'backup': x[2]
|
||||
} for x in packet.manifests]
|
||||
with open(manifest_path, 'w') as manifest_file:
|
||||
json.dump(manifests, manifest_file)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user