/[BackupPC]/trunk/bin/BackupPC_updatedb
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/bin/BackupPC_updatedb

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 239 by dpavlin, Thu Nov 17 15:06:24 2005 UTC revision 240 by dpavlin, Thu Nov 17 17:22:31 2005 UTC
# Line 630  sub recurseDir($$$$$$$$) { Line 630  sub recurseDir($$$$$$$$) {
630                                  $filesInBackup->{$path_key}->{'size'}                                  $filesInBackup->{$path_key}->{'size'}
631                          ));                          ));
632    
633                            # daylight saving time change offset for 1h
634                            my $dst_offset = 60 * 60;
635    
636                            my $key_dst1 = join(" ", (
637                                    $shareID,
638                                    $dir,
639                                    $path_key,
640                                    $filesInBackup->{$path_key}->{'mtime'} - $dst_offset,
641                                    $filesInBackup->{$path_key}->{'size'}
642                            ));
643    
644                            my $key_dst2 = join(" ", (
645                                    $shareID,
646                                    $dir,
647                                    $path_key,
648                                    $filesInBackup->{$path_key}->{'mtime'} + $dst_offset,
649                                    $filesInBackup->{$path_key}->{'size'}
650                            ));
651    
652                          my $found;                          my $found;
653                          if (! defined($beenThere->{$key}) && ! ($found = found_in_db($key, @data)) ) {                          if (
654                                    ! defined($beenThere->{$key}) &&
655                                    ! defined($beenThere->{$key_dst1}) &&
656                                    ! defined($beenThere->{$key_dst2}) &&
657                                    ! ($found = found_in_db($key, @data))
658                            ) {
659                                  print STDERR "# key: $key [", $beenThere->{$key},"]" if ($debug >= 2);                                  print STDERR "# key: $key [", $beenThere->{$key},"]" if ($debug >= 2);
660    
661                                  if ($filesInBackup->{$path_key}->{'type'} == BPC_FTYPE_DIR) {                                  if ($filesInBackup->{$path_key}->{'type'} == BPC_FTYPE_DIR) {

Legend:
Removed from v.239  
changed lines
  Added in v.240

  ViewVC Help
Powered by ViewVC 1.1.26