summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-06-15 10:14:18 +0200
committerSergei Golubchik <serg@mariadb.org>2018-06-15 10:14:18 +0200
commit93ab0effd37c3a96ab41cba9afc899d966048f42 (patch)
treef67d784285a73251d255cfcb96bfde6ca60fe1c9 /debian
parentc69357d8d4592b746a2dd7074c8fb6a437098b2a (diff)
downloadmariadb-git-93ab0effd37c3a96ab41cba9afc899d966048f42.tar.gz
MDEV-16187 Ubuntu Bionic MariaDB has epoch version that makes 10.1 and 10.2 installs fail
backport cb21e117bab from 10.2
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/autobake-deb.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/debian/autobake-deb.sh b/debian/autobake-deb.sh
index 9de37138ade..648c95cb416 100755
--- a/debian/autobake-deb.sh
+++ b/debian/autobake-deb.sh
@@ -57,9 +57,12 @@ sed -i -e "s/\\\${LIBSSL}/${LIBSSL}/g" debian/control
#
echo "Incrementing changelog and starting build scripts"
-dch -b -D ${CODENAME} -v "${UPSTREAM}${PATCHLEVEL}-${RELEASE_NAME}${RELEASE_EXTRA:+-${RELEASE_EXTRA}}1~${CODENAME}" "Automatic build with ${LOGSTRING}."
+if [[ "$CODENAME" == bionic ]]; then
+ EPOCH="1:"
+fi
+dch -b -D ${CODENAME} -v "${EPOCH}${UPSTREAM}${PATCHLEVEL}-${RELEASE_NAME}${RELEASE_EXTRA:+-${RELEASE_EXTRA}}1~${CODENAME}" "Automatic build with ${LOGSTRING}."
-echo "Creating package version ${UPSTREAM}${PATCHLEVEL}-${RELEASE_NAME}${RELEASE_EXTRA:+-${RELEASE_EXTRA}}1~${CODENAME} ... "
+echo "Creating package version ${EPOCH}${UPSTREAM}${PATCHLEVEL}-${RELEASE_NAME}${RELEASE_EXTRA:+-${RELEASE_EXTRA}}1~${CODENAME} ... "
# Build the package.
# Pass -I so that .git and other unnecessary temporary and source control files