Changeset 250 for trunk/RebuildQueue

Show
Ignore:
Timestamp:
05/14/07 17:26:26 (3 years ago)
Author:
djacobs
Message:

Fixed a bug in which syncing would die if a file had been deleted while a ticket was still in the Queue.

Location:
trunk/RebuildQueue
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/RebuildQueue/Changes.txt

    r243 r250  
     1Version 1.06 - May 14, 2007 
     2 
     3* Bug fixes 
     4 
    15Version 1.05 - May 5, 2007 
    26 
  • trunk/RebuildQueue/plugins/RebuildQueue/lib/RebuildQueue/Daemon.pm

    r221 r250  
    8484                print _summary($fi) . "\n"; 
    8585                push @files, $fi->file_path; 
     86                                # Only do this if we're sure $fi exists.  
     87                    unless ($fi->template_id) { 
     88                        # static file 
     89                        push @static_fileinfo, $fi; 
     90                    } 
    8691            } else { 
    8792                if (!$fi) { 
     
    9196                        print "Warning: couldn't locate file: " . $fi->file_path . "\n"; 
    9297                    } 
     98                                        # Only do this if we're sure $fi exists.  
     99                            unless ($fi->template_id) { 
     100                                # static file 
     101                                push @static_fileinfo, $fi; 
     102                            } 
    93103                } 
    94104            } 
    95105            push @rqf, $rqf; 
    96             unless ($fi->template_id) { 
    97                 # static file 
    98                 push @static_fileinfo, $fi; 
    99             } 
     106 
    100107        } 
    101108        my $synced = 0;