From 9f60710dba5a5693426eecb4788a04bfe3f797e1 Mon Sep 17 00:00:00 2001 From: Till Maas Date: Mar 23 2015 13:35:36 +0000 Subject: Verify sources Merge conflicts resolved by me --- diff --git a/bin/fedpkg b/bin/fedpkg index a83037a..f85c789 100755 --- a/bin/fedpkg +++ b/bin/fedpkg @@ -20,6 +20,9 @@ set -e baseurl=http://pkgs.fedoraproject.org/repo/pkgs pkgname=$(basename $PWD) -while read md5sum tarball; do - curl -H Pragma: -o ./$tarball -R -S --fail $baseurl/$pkgname/$tarball/$md5sum/$tarball -done < sources +if [[ -s sources ]]; then + while read md5sum tarball; do + curl -H Pragma: -o ./$tarball -R -S --fail $baseurl/$pkgname/$tarball/$md5sum/$tarball + done < sources + md5sum -c sources +fi