]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
build_tools: Fix download_externals to handle certified branches 05/4505/1
authorGeorge Joseph <gjoseph@digium.com>
Mon, 28 Nov 2016 17:03:23 +0000 (10:03 -0700)
committerGeorge Joseph <gjoseph@digium.com>
Mon, 28 Nov 2016 17:06:51 +0000 (10:06 -0700)
download_externals wasn't handling the "certified/13.x" version
correctly.

Change-Id: I124d195bb117ca36fd7bf1150c630f3b474a9d9a

build_tools/download_externals

index 2bc357c2989aa32efcaff129f77f2ebeb57ec1bd..d2e2e4fffa3b72f0d7b4b119c8573a43171c2335 100755 (executable)
@@ -45,11 +45,11 @@ if [[ -z ${cache_dir} ]] ; then
 fi
 
 version=$(${ASTTOPDIR}/build_tools/make_version ${ASTTOPDIR})
-if [[ ! ${version} =~ ^(GIT-)?([^.-]+)[.-].* ]] ; then
+if [[ ! ${version} =~ ^(GIT-)?(certified/)?([^.-]+)[.-].* ]] ; then
        echo "${module_name}: Couldn't parse version ${version}"
        exit 1
 fi
-major_version=${BASH_REMATCH[2]}
+major_version=${BASH_REMATCH[3]}
 
 if [[ "${major_version}" == "master" ]] ; then
        echo "${module_name}: External module downloading is not available in the 'master' git branch.  Please disable in menuselect and download manually."