From b0870096f2c743740fe1bde5bab0f632285de802 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 12 Dec 2016 22:36:25 +0100 Subject: [PATCH] makerepo: handle new SHA512 sources to detect build-directory --- contrib/fedora/utils/makerepo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/fedora/utils/makerepo.sh b/contrib/fedora/utils/makerepo.sh index 1a7f8caa42..62dfb2f677 100755 --- a/contrib/fedora/utils/makerepo.sh +++ b/contrib/fedora/utils/makerepo.sh @@ -230,7 +230,7 @@ detect_dirname() { local SOURCES local D suffix T - SOURCES=$(sed 's/.* //' ./sources 2>/dev/null) + SOURCES="$(sed 's/^\(SHA512 (\(.*\)) = [0-9a-f]\{128\}\|\([0-9a-f]\{32\} \+\(.*\)\)\)$/\2\4/' ./sources 2>/dev/null)" for suffix in .tar.gz .tar.bz .tar.xz .tgz .tar.bz2 ; do for T in ${SOURCES[@]}; do