Modify update-gcc.sh to allow it to work with gpg2 as well as gpg

svn path=/nixpkgs/trunk/; revision=26638
This commit is contained in:
Shea Levy 2011-03-31 21:47:03 +00:00
parent 6c033b18ee
commit 4940efa008

View File

@ -42,7 +42,7 @@ do
rm -f "${url}.sig"
wget "${url}.sig"
gpg --verify "${file}.sig" "${path}"
gpg --verify "${file}.sig" "${path}" || gpg2 --verify "${file}.sig" "${path}"
rm "${file}.sig"
cat >> "$out" <<EOF