--- trunk/bin/BackupPC_updatedb 2005/08/22 08:58:59 67 +++ trunk/bin/BackupPC_updatedb 2005/08/24 17:12:22 70 @@ -392,15 +392,15 @@ $filesInBackup->{$path_key}->{'size'} )); - - if (! defined($beenThere->{$key}) && ! found_in_db($key, @data)) { + my $found; + if (! defined($beenThere->{$key}) && ! ($found = found_in_db($key, @data)) ) { print STDERR "# key: $key [", $beenThere->{$key},"]" if ($debug >= 2); if ($filesInBackup->{$path_key}->{'type'} == BPC_FTYPE_DIR) { - $new_dirs++; + $new_dirs++ unless ($found); print STDERR " dir\n" if ($debug >= 2); } else { - $new_files++; + $new_files++ unless ($found); print STDERR " file\n" if ($debug >= 2); } $size += $filesInBackup->{$path_key}->{'size'} || 0;