File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,7 +39,11 @@ USE_CUR_TAG=${USE_CUR_TAG:-0}
3939
4040clone_openssl () {
4141 if [ -d ${OPENSSL_SOURCE_DIR} ] && [ " $USE_CUR_TAG " != " 1" ]; then
42- OPENSSL_TAG_CUR=$( cd ${OPENSSL_SOURCE_DIR} && (git describe --tags 2> /dev/null || git branch --show-current))
42+ if [[ " ${OPENSSL_TAG} " == openssl-* ]]; then
43+ OPENSSL_TAG_CUR=$( cd ${OPENSSL_SOURCE_DIR} && (git describe --tags 2> /dev/null || git branch --show-current 2> /dev/null))
44+ else
45+ OPENSSL_TAG_CUR=$( cd ${OPENSSL_SOURCE_DIR} && (git branch --show-current 2> /dev/null || git describe --tags 2> /dev/null))
46+ fi
4347 if [ " ${OPENSSL_TAG_CUR} " != " ${OPENSSL_TAG} " ]; then # force a rebuild
4448 printf " Version inconsistency. Please fix ${OPENSSL_SOURCE_DIR} (expected: ${OPENSSL_TAG} , got: ${OPENSSL_TAG_CUR} )\n"
4549 do_cleanup
Original file line number Diff line number Diff line change @@ -44,7 +44,11 @@ clone_wolfssl() {
4444 cp -pr ${WOLFSSL_FIPS_BUNDLE} /* ${WOLFSSL_SOURCE_DIR} /
4545 else
4646 if [ -d ${WOLFSSL_SOURCE_DIR} ] && [ " $USE_CUR_TAG " != " 1" ]; then
47- WOLFSSL_TAG_CUR=$( cd ${WOLFSSL_SOURCE_DIR} && (git describe --tags 2> /dev/null || git branch --show-current))
47+ if [[ " ${WOLFSSL_TAG} " == v* ]] || [[ " ${WOLFSSL_TAG} " == * -stable ]]; then
48+ WOLFSSL_TAG_CUR=$( cd ${WOLFSSL_SOURCE_DIR} && (git describe --tags 2> /dev/null || git branch --show-current 2> /dev/null))
49+ else
50+ WOLFSSL_TAG_CUR=$( cd ${WOLFSSL_SOURCE_DIR} && (git branch --show-current 2> /dev/null || git describe --tags 2> /dev/null))
51+ fi
4852 if [ " ${WOLFSSL_TAG_CUR} " != " ${WOLFSSL_TAG} " ]; then # force a rebuild
4953 printf " Version inconsistency. Please fix ${WOLFSSL_SOURCE_DIR} (expected: ${WOLFSSL_TAG} , got: ${WOLFSSL_TAG_CUR} )\n"
5054 do_cleanup
You can’t perform that action at this time.
0 commit comments