/[smeserver]/builds_bin/linksource
ViewVC logotype

Diff of /builds_bin/linksource

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

Revision 1.4 by slords, Tue Dec 12 03:48:04 2006 UTC Revision 1.5 by slords, Tue Dec 12 04:24:12 2006 UTC
# Line 22  my @repositories = qw( Line 22  my @repositories = qw(
22          /mirrors/fedora-legacy/fedora/3/updates/SRPMS/          /mirrors/fedora-legacy/fedora/3/updates/SRPMS/
23          /mirrors/fedora-legacy/fedora/3/os/SRPMS/          /mirrors/fedora-legacy/fedora/3/os/SRPMS/
24          /builds/rpms/SRPMS/          /builds/rpms/SRPMS/
         /builds/old_rpms/SRPMS/  
25          );          );
26    
27  opendir RPMS, "$src" or die "Couldn't opendir $src";  opendir RPMS, "$src" or die "Couldn't opendir $src";
28  my %rpms = map { my $x = RPM2->open_package("$src/$_", $rpm_flags); $x->tag('NAME') => $x; } grep { /\.rpm$/ } readdir RPMS;  my @rpms = map { RPM2->open_package("$src/$_", $rpm_flags) } grep { /\.rpm$/ } readdir RPMS;
29  closedir RPMS;  closedir RPMS;
30    
31  my %repos;  my %repos;
# Line 38  foreach my $repo (reverse @repositories) Line 37  foreach my $repo (reverse @repositories)
37      %repos = (%repos, %temp_repo);      %repos = (%repos, %temp_repo);
38  }  }
39    
40  foreach my $rpm ( sort keys %rpms )  foreach my $rpm ( sort @rpms )
41  {  {
42      my (@headers, $header);      my (@headers, $header);
43    
# Line 46  foreach my $rpm ( sort keys %rpms ) Line 45  foreach my $rpm ( sort keys %rpms )
45      $rpmfix =~ s@\+@\\+@g;      $rpmfix =~ s@\+@\\+@g;
46    
47      my @sources;      my @sources;
48      my $src = $rpms{$rpm}->tag('SOURCERPM');      my $src = $rpm->tag('SOURCERPM');
49      push @sources, $src;      push @sources, $src;
50      push @sources, $src if ($src =~ s/\.2\.el4\.rf\./\.rf\./);      push @sources, $src if ($src =~ s/\.2\.el4\.rf\./\.rf\./);
51      push @sources, $src if ($src =~ s/\.el4\.rf\./\.rf\./);      push @sources, $src if ($src =~ s/\.el4\.rf\./\.rf\./);


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed