# HG changeset patch # User Gilles Moris # Date 1257496218 -3600 # Node ID 326a0a6453a33130ac49ed21675b5034b8dd92c8 # Parent ce145bf2ca5e527c99bc22d6357f9bf4cd7d92da buildrpm: warn if there is outstanding uncommitted changes diff -r ce145bf2ca5e -r 326a0a6453a3 contrib/buildrpm --- a/contrib/buildrpm Fri Nov 06 09:26:29 2009 +0100 +++ b/contrib/buildrpm Fri Nov 06 09:30:18 2009 +0100 @@ -21,6 +21,14 @@ exit 1 fi +if $HG id -i | grep '+$' > /dev/null 2>&1; then + echo -n "Your local changes will NOT be in the RPM. Continue [y/n] ? " + read answer + if echo $answer | grep -iv '^y'; then + exit + fi +fi + rpmdir=/tmp/"`basename $root | sed 's/ /_/'`"-rpm # FIXME: Insecure /tmp handling cd "$root"