From: Brian J. Murrell Date: Tue, 3 May 2011 19:57:21 +0000 (-0400) Subject: LU-303 fix ofed download for bugfix releases X-Git-Tag: 2.0.61.0~13 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=91cd2cdd8d62805c7f65de55cf86ac41f9e7d33f;hp=8a597511df4cca5472b3b93be5da5d349ff51b80 LU-303 fix ofed download for bugfix releases On the OFED download server both w.x.y and w.x.y.z releases are stored in the w.x.y dir, so handle that properly for the w.x.y.z case. Signed-off-by: Brian J. Murrell Change-Id: Ic0ba6861ce000a9cc47c63219e357d2f6636b951 Reviewed-on: http://review.whamcloud.com/527 Tested-by: Hudson Reviewed-by: Yang Sheng Tested-by: Maloo Reviewed-by: Michael MacDonald Reviewed-by: Oleg Drokin --- diff --git a/build/lbuild b/build/lbuild index b4a91c2..92ed337 100755 --- a/build/lbuild +++ b/build/lbuild @@ -528,7 +528,12 @@ download_ofed() { return 0 fi - local location="http://www.openfabrics.org/downloads/OFED/ofed-${OFED_VERSION}/" + local OFED_BASE_VERSION=$OFED_VERSION + if [[ $OFED_VERSION = *.*.*.* ]]; then + OFED_BASE_VERSION=${OFED_VERSION%.*} + fi + + local location="http://www.openfabrics.org/downloads/OFED/ofed-${OFED_BASE_VERSION}/" if [[ $OFED_VERSION = daily-* ]]; then local Mmv daily