Bug 1468423 - Change to greedy match to fix version parsing. r=RyanVM, a=release
authorSimon Fraser <sfraser@mozilla.com>
Wed, 13 Jun 2018 03:38:16 +0000
changeset 471302 a7315d0e1bd9
parent 471301 efa931698868
child 471303 a7838c6579b6
push id9362
push userryanvm@gmail.com
push dateWed, 13 Jun 2018 13:56:21 +0000
treeherdermozilla-beta@4b525127bb53 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersRyanVM, release
bugs1468423
milestone61.0
Bug 1468423 - Change to greedy match to fix version parsing. r=RyanVM, a=release Differential Revision: https://phabricator.services.mozilla.com/D1639
taskcluster/docker/periodic-updates/scripts/periodic_file_updates.sh
--- a/taskcluster/docker/periodic-updates/scripts/periodic_file_updates.sh
+++ b/taskcluster/docker/periodic-updates/scripts/periodic_file_updates.sh
@@ -484,22 +484,22 @@ elif [[ "${BRANCH}" == mozilla-* ]]; the
   HGREPO="https://${HGHOST}/releases/${BRANCH}"
 else
   HGREPO="https://${HGHOST}/projects/${BRANCH}"
 fi
 MCREPO="https://${HGHOST}/mozilla-central"
 
 # Remove once 52esr is off support
 VERSION=$(get_version "${HGREPO}")
-MAJOR_VERSION="${VERSION%.*}"
+MAJOR_VERSION="${VERSION%%.*}"
 echo "INFO: parsed version is ${VERSION}"
 if [ "${USE_MC}" == "true" ]; then
   MCVERSION=$(get_version "${MCREPO}")
   echo "INFO: parsed mozilla-central version is ${MCVERSION}"
-  MAJOR_VERSION="${MCVERSION%.*}"
+  MAJOR_VERSION="${MCVERSION%%.*}"
 fi
 
 BROWSER_ARCHIVE="${PRODUCT}-${VERSION}.en-US.${PLATFORM}.${PLATFORM_EXT}"
 TESTS_ARCHIVE="${PRODUCT}-${VERSION}.en-US.${PLATFORM}.common.tests.zip"
 if [ "${USE_MC}" == "true" ]; then
   BROWSER_ARCHIVE="${PRODUCT}-${MCVERSION}.en-US.${PLATFORM}.${PLATFORM_EXT}"
   TESTS_ARCHIVE="${PRODUCT}-${MCVERSION}.en-US.${PLATFORM}.common.tests.zip"
 fi