diff options
author | Florian Pritz <bluewind@xinu.at> | 2017-03-19 19:46:42 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2017-03-19 19:46:42 +0100 |
commit | cef97c8be238c39d7069d8af82afffd5a6d800fb (patch) | |
tree | a4d29fe1608201f7aa0e3ea5fe51b95633248614 | |
parent | 47c228a5156bbc72b7db0696e57b04ac2dd6530c (diff) | |
download | App-BorgRestore-cef97c8be238c39d7069d8af82afffd5a6d800fb.tar.gz App-BorgRestore-cef97c8be238c39d7069d8af82afffd5a6d800fb.tar.xz |
Fix broken db handling when updating cache
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | lib/App/BorgRestore.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/App/BorgRestore.pm b/lib/App/BorgRestore.pm index 7252a75..abff5e1 100644 --- a/lib/App/BorgRestore.pm +++ b/lib/App/BorgRestore.pm @@ -343,14 +343,14 @@ sub handle_added_archives { sub build_archive_cache { my $self = shift; my $borg_archives = $self->{borg}->borg_list(); - my $db_path = $self->get_cache_path('archives.db'); + my $db_path = App::BorgRestore::Settings::get_cache_path('archives.db'); my $archives = $self->{db}->get_archive_names(); $log->debugf("Found %d archives in db", scalar(@$archives)); - $self->handle_removed_archives($self->{db}, $borg_archives); - $self->handle_added_archives($self->{db}, $borg_archives); + $self->handle_removed_archives($borg_archives); + $self->handle_added_archives($borg_archives); if ($self->{opts}->{debug}) { $log->debugf("DB contains information for %d archives in %d rows", scalar(@{$self->{db}->get_archive_names()}), $self->{db}->get_archive_row_count()); |