1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-25 09:19:31 +00:00

--list-format: make it compatible with old archives

they do not have atime and ctime, use mtime instead.
This commit is contained in:
Thomas Waldmann 2016-02-21 21:11:56 +01:00
parent f7666807cc
commit d14e6f720c

View file

@ -462,8 +462,8 @@ def do_list(self, args):
mtime = safe_timestamp(item[b'mtime']) mtime = safe_timestamp(item[b'mtime'])
if use_user_format: if use_user_format:
atime = safe_timestamp(item[b'atime']) atime = safe_timestamp(item.get(b'atime') or item[b'mtime'])
ctime = safe_timestamp(item[b'ctime']) ctime = safe_timestamp(item.get(b'ctime') or item[b'mtime'])
if b'source' in item: if b'source' in item:
source = item[b'source'] source = item[b'source']