From cef97c8be238c39d7069d8af82afffd5a6d800fb Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 19 Mar 2017 19:46:42 +0100 Subject: Fix broken db handling when updating cache Signed-off-by: Florian Pritz --- lib/App/BorgRestore.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') 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()); -- cgit v1.2.3-24-g4f1b