Fix patchelf RPM builds

http://hydra.nixos.org/build/17037187
This commit is contained in:
Eelco Dolstra 2014-11-20 13:19:36 +01:00
parent c14dee55e8
commit 17cf42d876

View File

@ -2,7 +2,7 @@ findTarball() {
local suffix i local suffix i
if [ -d "$1/tarballs/" ]; then if [ -d "$1/tarballs/" ]; then
for suffix in tar.gz tgz tar.bz2 tbz2 tar.xz tar.lzma; do for suffix in tar.gz tgz tar.bz2 tbz2 tar.xz tar.lzma; do
for i in $1/tarballs/*.$suffix; do echo $i; return; done for i in $1/tarballs/*.$suffix; do echo $i; break; done
done | sort | head -1 done | sort | head -1
return return
else else