summarylogtreecommitdiffstats
path: root/ff-downloader.pl
diff options
context:
space:
mode:
authorSimon Brulhart2016-03-14 01:02:49 +0100
committerSimon Brulhart2016-03-14 01:07:48 +0100
commitfa6fbe44eb6c3e3e32466607325972983a42be79 (patch)
treebddfbc1c51b68fefc64008bb72fc3d92520e5c7a /ff-downloader.pl
parent2e60e782cc7e5be3eb68e6295c3ef6821340c28f (diff)
downloadaur-fa6fbe44eb6c3e3e32466607325972983a42be79.tar.gz
adapt to new SHA512SUMS format
Diffstat (limited to 'ff-downloader.pl')
-rw-r--r--ff-downloader.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/ff-downloader.pl b/ff-downloader.pl
index 49daaa7f1f9a..750827f02a99 100644
--- a/ff-downloader.pl
+++ b/ff-downloader.pl
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-# ff-downloader v0.6.0.1
+# ff-downloader v0.6.0.2
## Copyright 2011-15 Simone Sclavi 'Ito'
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -295,7 +295,8 @@ get_url( $ff_url, 'SHA512SUMS' ) or die qq(:: ERROR - can't download SHA512SUMS\
print ':: verifying sha512 checksum ... ';
my @sha512_file = read_file('SHA512SUMS');
-my $search_string = "linux-${ARCH}/${LANG}/${ff_bz2}";
+my ($final_ver,) = split(/(rc|b)\d+$/, $VER);
+my $search_string = "firefox-${final_ver}.${LANG}.linux-${ARCH}.tar.bz2";
my $sha512s;
for (@sha512_file)
{