X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=lib%2FBackupPC%2FView.pm;h=3f56841e415a1868a1364478ff54ff91cd3cfed7;hp=7e4ae99deab7295ef1d4b6ce8d34fef90ab1e4ea;hb=d060aa5c2807ff541ac5c83eacfed101ed82c391;hpb=fda25dc88a63ccac1c80efa2e4994bf0725ca9b7 diff --git a/lib/BackupPC/View.pm b/lib/BackupPC/View.pm index 7e4ae99..3f56841 100644 --- a/lib/BackupPC/View.pm +++ b/lib/BackupPC/View.pm @@ -13,7 +13,7 @@ # Craig Barratt # # COPYRIGHT -# Copyright (C) 2002-2007 Craig Barratt +# Copyright (C) 2002-2009 Craig Barratt # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -31,7 +31,7 @@ # #======================================================================== # -# Version 3.1.0, released 25 Nov 2007. +# Version 3.2.0, released 31 Jul 2010. # # See http://backuppc.sourceforge.net. # @@ -105,6 +105,9 @@ sub dirCache # next if ( $m->{backups}[$i]{level} >= $level ); + last if exists $m->{dirOpts}->{only_first} && $i != $m->{idx}; + # used by bin/BackupPC_updatedb to extract just first increment + $level = $m->{backups}[$i]{level}; $backupNum = $m->{backups}[$i]{num}; push(@{$m->{mergeNums}}, $backupNum);