#5 Fix stripping the filename from the hash line
Closed 7 years ago by puiterwijk. Opened 7 years ago by puiterwijk.
puiterwijk/fedpkg-minimal fix-stripping  into  master

file modified
+1 -2
@@ -32,8 +32,7 @@ 

          # 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

Pull-Request has been closed by puiterwijk

7 years ago