Skip to content

Commit

Permalink
add some sanity checks
Browse files Browse the repository at this point in the history
  • Loading branch information
arnehilmann committed Oct 26, 2016
1 parent 6b1fa79 commit 539978d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build-rpm
@@ -1,7 +1,8 @@
#!/bin/bash
set -e -E -u

deactivate 2> /dev/null || :
which python | grep -q venv && { echo "inside virtualenv, aborting now!"; exit 1; }
[[ -d target/dist ]] || { echo "no target/dist dir?! run 'pyb' before, aborting now!"; exit 2; }

rm -f target/python-*.rpm
fpm -s python -t rpm -f -p target/ --iteration $(git reflog --oneline | wc -l) --epoch 0 target/dist/*/

0 comments on commit 539978d

Please sign in to comment.