From 37c0dca99997f39e8785a94801adf5fcdcb837ba Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Thu, 27 Jan 2011 23:34:29 +0100 Subject: [PATCH] renamed to only_increment This better describes functionality and is self-documenting you can also add it to view ULRs on the web --- bin/BackupPC_ASA_SearchUpdate | 2 +- bin/BackupPC_tarCreate | 2 +- lib/BackupPC/CGI/Browse.pm | 2 +- lib/BackupPC/View.pm | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/BackupPC_ASA_SearchUpdate b/bin/BackupPC_ASA_SearchUpdate index 5615abb..034642f 100755 --- a/bin/BackupPC_ASA_SearchUpdate +++ b/bin/BackupPC_ASA_SearchUpdate @@ -534,7 +534,7 @@ foreach my $host_key (@hosts) { print $share_header unless $opt->quiet; status "$hostname $backupNum $share_header"; - my $files = BackupPC::View->new($bpc, $hostname, \@backups, { only_first => 1 }); + my $files = BackupPC::View->new($bpc, $hostname, \@backups, { only_increment => 1 }); foreach my $share ($files->shareList($backupNum)) { diff --git a/bin/BackupPC_tarCreate b/bin/BackupPC_tarCreate index b04464a..9af2931 100755 --- a/bin/BackupPC_tarCreate +++ b/bin/BackupPC_tarCreate @@ -147,7 +147,7 @@ my $view_opts; my %Conf = $bpc->Conf; if ( $Conf{TarCreateIncremental} || $opts{i} ) { warn "# incremental dump"; - $view_opts = { only_first => 1 }; + $view_opts = { only_increment => 1 }; } our $ShareName = $opts{s}; diff --git a/lib/BackupPC/CGI/Browse.pm b/lib/BackupPC/CGI/Browse.pm index b0703ca..014ef9e 100644 --- a/lib/BackupPC/CGI/Browse.pm +++ b/lib/BackupPC/CGI/Browse.pm @@ -80,7 +80,7 @@ sub action my $backupTime = timeStamp2($Backups[$i]{startTime}); my $backupAge = sprintf("%.1f", (time - $Backups[$i]{startTime}) / (24 * 3600)); - my $view = BackupPC::View->new($bpc, $host, \@Backups, {nlink => 1}); + my $view = BackupPC::View->new($bpc, $host, \@Backups, {nlink => 1, only_increment => $In{only_increment}}); if ( $dir eq "" || $dir eq "." || $dir eq ".." ) { $attr = $view->dirAttrib($num, "", ""); diff --git a/lib/BackupPC/View.pm b/lib/BackupPC/View.pm index 6878b9b..c8664af 100644 --- a/lib/BackupPC/View.pm +++ b/lib/BackupPC/View.pm @@ -245,7 +245,7 @@ sub dirCache } } - last if $m->{dirOpts}->{only_first}; # XXX ASA Search extension + last if $m->{dirOpts}->{only_increment}; # XXX ASA Search extension } # # Prune deleted files -- 2.20.1