summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-11-26 00:09:03 +0100
committerFlorian Pritz <bluewind@xinu.at>2017-11-26 00:09:03 +0100
commit3f9a3b6ef336b88c7fa215131cf933275ffea845 (patch)
treedc7494f6ce266f0320a2df6b381c73dfaee1fd40 /lib
parent5d6e9497934edd3f4cd3f22d20d36a7d56812870 (diff)
downloadApp-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.pm2
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);
}