Skip to content

Commit

Permalink
MDEV-16187 Ubuntu Bionic MariaDB has epoch version that makes 10.1 an…
Browse files Browse the repository at this point in the history
…d 10.2 installs fail
  • Loading branch information
vuvova committed May 16, 2018
1 parent ebc2495 commit cb21e11
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions debian/autobake-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,13 @@ UPSTREAM="${MYSQL_VERSION_MAJOR}.${MYSQL_VERSION_MINOR}.${MYSQL_VERSION_PATCH}${
PATCHLEVEL="+maria"
LOGSTRING="MariaDB build"
CODENAME="$(lsb_release -sc)"
if [[ "$CODENAME" == bionic ]]; then
EPOCH="1:"
fi

dch -b -D ${CODENAME} -v "${UPSTREAM}${PATCHLEVEL}~${CODENAME}" "Automatic build with ${LOGSTRING}."
dch -b -D ${CODENAME} -v "${EPOCH}${UPSTREAM}${PATCHLEVEL}~${CODENAME}" "Automatic build with ${LOGSTRING}."

echo "Creating package version ${UPSTREAM}${PATCHLEVEL}~${CODENAME} ... "
echo "Creating package version ${EPOCH}${UPSTREAM}${PATCHLEVEL}~${CODENAME} ... "

# Build the package
# Pass -I so that .git and other unnecessary temporary and source control files
Expand Down

0 comments on commit cb21e11

Please sign in to comment.