diff options
author | Julien Danjou <jdanjou@mandriva.org> | 2003-08-05 15:35:53 +0000 |
---|---|---|
committer | Julien Danjou <jdanjou@mandriva.org> | 2003-08-05 15:35:53 +0000 |
commit | d94172dc191e03a15ea288ae10856783a1487745 (patch) | |
tree | 46910b323829dfc7023493b85800fc7b0bd12f6f /rpmbuildupdate | |
parent | 0685b716e4c53214f6f53b4dcaa6a6043a00a3cc (diff) | |
download | bootsplash-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-x | rpmbuildupdate | 5 |
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/; |