# HG changeset patch # User Mads Kiilerich # Date 1227744551 -3600 # Node ID 3d827cc616b6f9848b0083b48c0a3b25bc4197b4 # Parent f0a3e87c810d18c3bbd58cf25ac7747eff924f79 buildrpm: complain when hg command isn't available Before it complained "You are not inside a Mercurial repository!" which wasn't true. diff --git a/contrib/buildrpm b/contrib/buildrpm --- a/contrib/buildrpm +++ b/contrib/buildrpm @@ -3,9 +3,16 @@ # Build a Mercurial RPM in place. # Known to work on: # - Fedora 9 +# - Fedora 10 # # Bryan O'Sullivan +if hg --version > /dev/null 2>&1; then : +else + echo 'hg command not available!' 1>&2 + exit 1 +fi + root="`hg root 2>/dev/null`" specfile=contrib/mercurial.spec