X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=lib%2FBackupPC%2FView.pm;h=3f56841e415a1868a1364478ff54ff91cd3cfed7;hp=3824bb4739a1bdb707094c7061e94d1c6d659d35;hb=d060aa5c2807ff541ac5c83eacfed101ed82c391;hpb=f6fbcc3682d2bc9e7dfdc26e95bd5fcdb359496d diff --git a/lib/BackupPC/View.pm b/lib/BackupPC/View.pm index 3824bb4..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.2.0beta0, released 5 April 2009. +# 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);