diff options
author | Florian Pritz <bluewind@xinu.at> | 2017-11-26 00:09:03 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2017-11-26 00:09:03 +0100 |
commit | 3f9a3b6ef336b88c7fa215131cf933275ffea845 (patch) | |
tree | dc7494f6ce266f0320a2df6b381c73dfaee1fd40 /lib | |
parent | 5d6e9497934edd3f4cd3f22d20d36a7d56812870 (diff) | |
download | App-BorgRestore-3f9a3b6ef336b88c7fa215131cf933275ffea845.tar.gz App-BorgRestore-3f9a3b6ef336b88c7fa215131cf933275ffea845.tar.xz |
Use mtime for borg 1.1 instead of isomtime
The rest of the code expects the mtime format, but borg <1.1 mixed up
the formats between isomtime and mtime.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/App/BorgRestore/Borg.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/App/BorgRestore/Borg.pm b/lib/App/BorgRestore/Borg.pm index c8a6833..66c5705 100644 --- a/lib/App/BorgRestore/Borg.pm +++ b/lib/App/BorgRestore/Borg.pm @@ -123,7 +123,7 @@ method list_archive($archive, $cb) { my $fh; if (Version::Compare::version_compare($self->{borg_version}, "1.1") >= 0) { - open ($fh, '-|', 'borg', qw/list --format/, '{isomtime} {path}{NEWLINE}', $self->{borg_repo}."::".$archive); + open ($fh, '-|', 'borg', qw/list --format/, '{mtime} {path}{NEWLINE}', $self->{borg_repo}."::".$archive); } else { open ($fh, '-|', 'borg', qw/list --list-format/, '{isomtime} {path}{NEWLINE}', $self->{borg_repo}."::".$archive); } |