Skip to content

Commit

Permalink
Block upgrades in bin/lein-pkg.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Dec 1, 2013
1 parent 9eb9149 commit 18c53ce
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/lein-pkg
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ else
trap "rm -f $TRAMPOLINE_FILE" EXIT
fi

if [ "$1" = "upgrade" ]; then
echo "This version of Leiningen was installed with a package manager, but"
echo "the upgrade task is intended for manual installs. Please use your"
echo "package manager's built-in upgrade facilities instead."
exit 1
fi

if [ "$INPUT_CHECKSUM" != "" ] && [ -r "$TRAMPOLINE_FILE" ]; then
if [ $DEBUG ]; then
echo "Fast trampoline with $TRAMPOLINE_FILE."
Expand Down

0 comments on commit 18c53ce

Please sign in to comment.