mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-26 01:37:20 +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:
parent
f7666807cc
commit
d14e6f720c
1 changed files with 2 additions and 2 deletions
|
@ -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']
|
||||||
|
|
Loading…
Reference in a new issue