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; |
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 |
|
|
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\./); |