mirror of https://github.com/borgbackup/borg.git
--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
|
@ -462,8 +462,8 @@ class Archiver:
|
||||||
|
|
||||||
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 New Issue