diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-01-24 14:04:43 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-01-24 14:04:43 +0100 |
commit | 573b06af740b3f1966aa2ea190494d9c87270786 (patch) | |
tree | d2f5dd29803ad5bbca171bfff9b1ece4ef3d5b3c /mk/fetch.mk | |
parent | 42ed8eb00eba8691994588b7fca5dbd04d92a59c (diff) | |
parent | 3953de124e87ce3b594fd861b6f111b2df706753 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'mk/fetch.mk')
-rw-r--r-- | mk/fetch.mk | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mk/fetch.mk b/mk/fetch.mk index 2172e9d86..5c3edf918 100644 --- a/mk/fetch.mk +++ b/mk/fetch.mk @@ -33,18 +33,21 @@ ifeq ($(strip ${NO_CHECKSUM}),) ${_CHECKSUM_COOKIE}: ${FULLDISTFILES} -rm -rf ${WRKDIR} @OK=n; \ + allsums="$(strip ${PKG_MD5SUM})"; \ (md5sum ${FULLDISTFILES}; echo exit) | while read sum name; do \ if [[ $$sum = exit ]]; then \ [[ $$OK = n ]] && echo >&2 "==> No distfile found!" || :; \ [[ $$OK = 1 ]] || exit 1; \ break; \ fi; \ - if [[ $$sum = "$(strip ${PKG_MD5SUM})" ]]; then \ + cursum="$${allsums%% *}"; \ + allsums="$${allsums#* }"; \ + if [[ $$sum = "$$cursum" ]]; then \ [[ $$OK = 0 ]] || OK=1; \ continue; \ fi; \ echo >&2 "==> Checksum mismatch for $${name##*/} (MD5)"; \ - echo >&2 ":---> should be '$(strip ${PKG_MD5SUM})'"; \ + echo >&2 ":---> should be '$$cursum'"; \ echo >&2 ":---> really is '$$sum'"; \ OK=0; \ done |