/[webpac2]/trunk/run.pl
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/run.pl

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

revision 290 by dpavlin, Sun Dec 18 23:10:02 2005 UTC revision 291 by dpavlin, Sun Dec 18 23:34:24 2005 UTC
# Line 129  while (my ($database, $db_config) = each Line 129  while (my ($database, $db_config) = each
129    
130                          my $row = $input_db->fetch || next;                          my $row = $input_db->fetch || next;
131    
132                          my $mfn = $row->{000}->[0] || $row->{000} || die "can't find MFN";                          my $mfn = $row->{'000'}->[0];
133    
134                          if ($mfn =~ m#^\d+$#) {                          if (! $mfn || $mfn !~ m#^\d+$#) {
135                                  $log->warn("record $pos doesn't have valid MFN but '$mfn', using $pos");                                  $log->warn("record $pos doesn't have valid MFN but '$mfn', using $pos");
136                                  $mfn = $pos;                                  $mfn = $pos;
137                                  $row->{000}->[0] = $pos;                                  push @{ $row->{'000'} }, $pos;
138                          }                          }
139    
140                          my $ds = $n->data_structure($row);                          my $ds = $n->data_structure($row);
141    
142                          $est->add(                          $est->add(
143                                  id => $input->{name} . "#" . $mfn,                                  id => $input->{name} . "/" . $mfn,
144                                  ds => $ds,                                  ds => $ds,
145                                  type => $config->{hyperestraier}->{type},                                  type => $config->{hyperestraier}->{type},
146                          );                          );

Legend:
Removed from v.290  
changed lines
  Added in v.291

  ViewVC Help
Powered by ViewVC 1.1.26