firefox-bin: Work around bug in upstream SHA sums files

This commit is contained in:
adisbladis 2020-07-14 20:26:56 +02:00
parent f84cd5f8aa
commit 11acd8b30e
No known key found for this signature in database
GPG Key ID: 110BFAD44C6249B7

View File

@ -51,8 +51,9 @@ in writeScript "update-${name}" ''
curl --silent -o $HOME/shasums.asc "$url$version/SHA256SUMS.asc"
gpgv --keyring=$GNUPGHOME/pubring.kbx $HOME/shasums.asc $HOME/shasums
# this is a list of sha512 and tarballs for both arches
shasums=`cat $HOME/shasums`
# this is a list of sha256 and tarballs for both arches
# Upstream files contains python repr strings like b'somehash', hence the sed dance
shasums=`cat $HOME/shasums | sed -E s/"b'([a-f0-9]{64})'?(.*)"/'\1\2'/`
cat > $tmpfile <<EOF
{