X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=lib%2FBackupPC%2FView.pm;fp=lib%2FBackupPC%2FView.pm;h=64d5abe3628e825c8243b4eae0a616188410efe1;hp=cf03983a67fab1864f4edfd1d5c1bf8ede5a6676;hb=16755c17628b28a58d75663d7541036344826961;hpb=3f3d4f4adbd990e15969d9cbc5e99e89e613e502 diff --git a/lib/BackupPC/View.pm b/lib/BackupPC/View.pm index cf03983..64d5abe 100644 --- a/lib/BackupPC/View.pm +++ b/lib/BackupPC/View.pm @@ -64,10 +64,6 @@ sub new # are added to the returned hash. # See BackupPC::Lib::dirRead(). }, $class; - for ( my $i = 0 ; $i < @{$m->{backups}} ; $i++ ) { - next if ( defined($m->{backups}[$i]{level}) ); - $m->{backups}[$i]{level} = $m->{backups}[$i]{type} eq "incr" ? 1 : 0; - } $m->{topDir} = $m->{bpc}->TopDir(); return $m; } @@ -138,7 +134,7 @@ sub dirCache my $attr; if ( $mangle ) { $attr = BackupPC::Attrib->new({ compress => $compress }); - if ( -f $attr->fileName($path) && !$attr->read($path) ) { + if ( !$attr->read($path) ) { $m->{error} = "Can't read attribute file in $path"; $attr = undef; } @@ -402,7 +398,7 @@ sub dirHistory my $attr; if ( $mangle ) { $attr = BackupPC::Attrib->new({ compress => $compress }); - if ( -f $attr->fileName($path) && !$attr->read($path) ) { + if ( !$attr->read($path) ) { $m->{error} = "Can't read attribute file in $path"; $attr = undef; }