--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
1 changed files with 2 additions and 2 deletions

View File

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