From de6b87b9a5498462f85f95cde5639af3e2cc37db Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Dec 12 2016 19:50:17 +0000 Subject: Fix stripping the filename from the hash line Signed-off-by: Patrick Uiterwijk --- diff --git a/bin/fedpkg b/bin/fedpkg index 42cd65d..bd9b93a 100755 --- a/bin/fedpkg +++ b/bin/fedpkg @@ -32,8 +32,7 @@ if [[ -s sources ]]; then # the same type, so we don't need to read it again for each line. while read -r _ filename _ hash; do # Remove parenthesis around tarball name - filename=${filename#(} - tarball=${filename%)} + tarball="`echo $filename | sed 's/(\|)//g'`" curl -L -H Pragma: -o "./$tarball" -R -S --fail "$baseurl/$pkgname/$tarball/$hashtype/$hash/$tarball" done < sources "${hashtype}sum" -c sources