aboutsummaryrefslogtreecommitdiffstats
path: root/rpmbuildupdate
diff options
context:
space:
mode:
authorJulien Danjou <jdanjou@mandriva.org>2003-08-05 15:35:53 +0000
committerJulien Danjou <jdanjou@mandriva.org>2003-08-05 15:35:53 +0000
commitd94172dc191e03a15ea288ae10856783a1487745 (patch)
tree46910b323829dfc7023493b85800fc7b0bd12f6f /rpmbuildupdate
parent0685b716e4c53214f6f53b4dcaa6a6043a00a3cc (diff)
downloadbootsplash-d94172dc191e03a15ea288ae10856783a1487745.tar
bootsplash-d94172dc191e03a15ea288ae10856783a1487745.tar.gz
bootsplash-d94172dc191e03a15ea288ae10856783a1487745.tar.bz2
bootsplash-d94172dc191e03a15ea288ae10856783a1487745.tar.xz
bootsplash-d94172dc191e03a15ea288ae10856783a1487745.zip
fix some bugs
Diffstat (limited to 'rpmbuildupdate')
-rwxr-xr-xrpmbuildupdate5
1 files changed, 3 insertions, 2 deletions
diff --git a/rpmbuildupdate b/rpmbuildupdate
index ccc8308..24035b0 100755
--- a/rpmbuildupdate
+++ b/rpmbuildupdate
@@ -122,16 +122,18 @@ sub build
foreach (@url)
{
+ my $basename = `basename $_`; chomp($basename);
if(/ftp\.redhat\.com.*SRPMS/)
{
$found = 1;
opendir(MP, $config{rawhide}) or die "$config{rawhide} is not a directory";
my @rpmsrh = readdir(MP);
+ my $pkgrpmrh;
foreach (@rpmsrh)
{
if(m|^($pkge)-([^-]+)-([^-]+)\.[^\.]+\.rpm|)
- { my $pkgrpmrh = $_; last;}
+ { $pkgrpmrh = $_; last;}
}
closedir(MP);
@@ -158,7 +160,6 @@ sub build
print "Trying $_...\n";
system("wget ".$_);
- my $basename = `basename $_`; chomp($basename);
if($basename =~ /gz/)
{
s/gz/bz2/;