Mercurial > hg-stable
changeset 7431:3d827cc616b6
buildrpm: complain when hg command isn't available
Before it complained "You are not inside a Mercurial repository!" which wasn't true.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Thu, 27 Nov 2008 01:09:11 +0100 |
parents | f0a3e87c810d |
children | 642754e776e2 |
files | contrib/buildrpm |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/buildrpm Thu Nov 27 00:57:32 2008 +0100 +++ b/contrib/buildrpm Thu Nov 27 01:09:11 2008 +0100 @@ -3,9 +3,16 @@ # Build a Mercurial RPM in place. # Known to work on: # - Fedora 9 +# - Fedora 10 # # Bryan O'Sullivan <bos@serpentine.com> +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