From d6fb3784dd73e16de4f744d5e5fae3933a5a898c Mon Sep 17 00:00:00 2001 From: jbu Date: Mon, 6 Jul 2015 21:34:52 +0200 Subject: [PATCH] 00-distfiles: fix hard link existence test --- common/hooks/do-fetch/00-distfiles.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/hooks/do-fetch/00-distfiles.sh b/common/hooks/do-fetch/00-distfiles.sh index 53494e3ced5..43cc298b6c4 100644 --- a/common/hooks/do-fetch/00-distfiles.sh +++ b/common/hooks/do-fetch/00-distfiles.sh @@ -32,7 +32,7 @@ verify_cksum() { msg_red "SHA256 mismatch for '$curfile:'\n$filesum\n" errors=$(($errors + 1)) else - if [ ! -f "$XBPS_SRCDISTDIR/by_sha256/$cksum" ]; then + if [ ! -f "$XBPS_SRCDISTDIR/by_sha256/${cksum}_${curfile}" ]; then mkdir -p "$XBPS_SRCDISTDIR/by_sha256" ln -f "$distfile" "$XBPS_SRCDISTDIR/by_sha256/${cksum}_${curfile}" fi