Commit 05e3d8cc authored by Kenneth Reitz's avatar Kenneth Reitz

fix mercurial step

Signed-off-by: 's avatarKenneth Reitz <me@kennethreitz.org>
parent 2f18118c
#!/usr/bin/env bash #!/usr/bin/env bash
# Install Mercurial if it appears to be required. # Install Mercurial if it appears to be required.
if (grep -Fiq "hg+" requirements.txt) then if [[ -f "requirements.txt" ]]; then
if (grep -Fiq "hg+" requirements.txt) then
/app/.heroku/python/bin/pip install mercurial | cleanup | indent /app/.heroku/python/bin/pip install mercurial | cleanup | indent
fi
fi fi
...@@ -8,6 +8,7 @@ Options: ...@@ -8,6 +8,7 @@ Options:
-h --help Show this screen. -h --help Show this screen.
""" """
import os import os
import sys
from docopt import docopt from docopt import docopt
from pip.req import parse_requirements from pip.req import parse_requirements
from pip.index import PackageFinder from pip.index import PackageFinder
...@@ -73,5 +74,5 @@ if __name__ == '__main__': ...@@ -73,5 +74,5 @@ if __name__ == '__main__':
try: try:
main() main()
except Exception: except Exception:
pass sys.exit(1)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment