29 |
"/mirrors/fedora/epel/$centosrel/$arch", |
"/mirrors/fedora/epel/$centosrel/$arch", |
30 |
"/mirrors/rpmforge/dag/redhat/el$centosrel/en/$arch/dag/RPMS", |
"/mirrors/rpmforge/dag/redhat/el$centosrel/en/$arch/dag/RPMS", |
31 |
"/mirrors/atrpms/el$centosrel-$arch/atrpms/stable", |
"/mirrors/atrpms/el$centosrel-$arch/atrpms/stable", |
32 |
|
"/mirrors/atrpms/el$centosrel-$arch/atrpms/testing", |
33 |
"/mirrors/fedora/core/updates/$fedorarel/$arch", |
"/mirrors/fedora/core/updates/$fedorarel/$arch", |
34 |
"/mirrors/fedora/core/$fedorarel/$arch/os/Fedora/RPMS", |
"/mirrors/fedora/core/$fedorarel/$arch/os/Fedora/RPMS", |
35 |
"/mirrors/fedora/extras/$fedorarel/$arch", |
"/mirrors/fedora/extras/$fedorarel/$arch", |
67 |
} |
} |
68 |
} |
} |
69 |
@headers = reverse sort { $a cmp $b } @headers; |
@headers = reverse sort { $a cmp $b } @headers; |
70 |
|
if (grep { $_->filename =~ m#/centos/[\d.]+/(os|updates|fasttrack|extras)/#i } @headers) |
71 |
|
{ |
72 |
|
@headers = grep { $_->filename !~ m#/fedora/#i || $_->filename =~ m#/epel/#i || $_ eq $rpms{$rpm} } @headers; |
73 |
|
} |
74 |
unless ($opts{a}) { |
unless ($opts{a}) { |
75 |
if (grep { $_->filename =~ m#/centos/[\d.]+/(updates|fasttrack)/#i } @headers) |
if (grep { $_->filename =~ m#/centos/[\d.]+/(updates|fasttrack)/#i } @headers) |
76 |
{ |
{ |
78 |
} |
} |
79 |
if (grep { $_->filename =~ m#/centos/[\d.]+/(os|updates|fasttrack|extras)/#i || $_->filename =~ m#/(dag|epel)/[^d]#i } @headers) |
if (grep { $_->filename =~ m#/centos/[\d.]+/(os|updates|fasttrack|extras)/#i || $_->filename =~ m#/(dag|epel)/[^d]#i } @headers) |
80 |
{ |
{ |
81 |
@headers = grep { $_->filename !~ m#/(atrpms|fedora)/#i || $_->filename =~ m#/epel/#i || $_ eq $rpms{$rpm} } @headers; |
@headers = grep { $_->filename !~ m#/atrpms/#i || $_ eq $rpms{$rpm} } @headers; |
82 |
} |
} |
83 |
} |
} |
84 |
if ($#headers < 0) |
if ($#headers < 0) |