From 161bf49a3ad39972c68320735ec3f132023f1dd0 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Wed, 2 Jan 2013 20:43:58 -0500 Subject: [PATCH] abort if bad python requested --- bin/compile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/compile b/bin/compile index 4faafba..2052374 100755 --- a/bin/compile +++ b/bin/compile @@ -140,6 +140,12 @@ fi if [ ! "$SKIP_INSTALL" ]; then puts-step "Preparing Python runtime ($PYTHON_VERSION)" curl http://envy-versions.s3.amazonaws.com/$PYTHON_VERSION.tar.bz2 -s | tar jx > /dev/null + if [[ $rc != 0 ]] ; then + puts-warn "Requested runtime ($PYTHON_VERSION) was not found. More info:" + puts-warn "https://devcenter.heroku.com/articles/python-support" + puts-warn "Aborting." + exit 1 + fi mv python .heroku/python # Record for future reference.