diff --git a/CHANGELOG.md b/CHANGELOG.md index 2132849..0926b54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Update Python3 and Python2 base formula - Update Python formulas 3.6.x, 3.7.x, 3.5.x, and 2.7.17-2.7.9 - Test staged binaries on Travis +- Bug fix: Sqlite3 version bump -------------------------------------------------------------------------------- diff --git a/bin/steps/sqlite3 b/bin/steps/sqlite3 index 3faae6e..8a91e91 100755 --- a/bin/steps/sqlite3 +++ b/bin/steps/sqlite3 @@ -7,9 +7,9 @@ sqlite3_version() { if [ "$STACK" = "cedar-14" ]; then SQLITE3_VERSION="3.8.2-1ubuntu2.2" elif [ "$STACK" = "heroku-16" ]; then - SQLITE3_VERSION="3.11.0-1ubuntu1.2" + SQLITE3_VERSION="3.11.0-1ubuntu1.3" else - SQLITE3_VERSION=${SQLITE3_VERSION:-$(dpkg -s libsqlite3-0 | grep Version | sed 's/Version: //')} + SQLITE3_VERSION="3.22.0-1ubuntu0.2" fi export SQLITE3_VERSION @@ -83,7 +83,14 @@ buildpack_sqlite3_install() { # only install if the sqlite3 version has changed if [ "$INSTALLED_SQLITE3_VERSION" != "$SQLITE3_VERSION" ]; then puts-step "Installing SQLite3" - sqlite3_install "$BUILD_DIR/.heroku/python" "$SQLITE3_VERSION" + + if sqlite3_install "$BUILD_DIR/.heroku/python" "$SQLITE3_VERSION" ; then + echo "Sqlite3 successfully installed." + mcount "success.python.sqlite3" + else + echo "Sqlite3 failed to install." + mcount "failure.python.sqlite3" + fi # save version installed mkdir -p "$CACHE_DIR/.heroku/" diff --git a/test/run-deps b/test/run-deps index bd03fa7..29d7f8f 100755 --- a/test/run-deps +++ b/test/run-deps @@ -46,6 +46,13 @@ testPysqlite() { assertCapturedSuccess } +testSqliteInstall() { + compile "pythonDefault" + assertCaptured "Sqlite3 successfully installed." + assertNotCaptured "Sqlite3 failed to install." + assertCapturedSuccess +} + testCffi() { compile "cffi" assertCaptured "cffi"