Mercurial > hg > mercurial-source
changeset 33560:9dccaff02ad5
packagelib: use LANGUAGE=C for "hg version"
If "hg version" does not contain "version" (e.g. Japanese),
$hgversion was empty and rpmbuild failed.
author | Toshi MARUYAMA <marutosijp2@gmail.com> |
---|---|
date | Mon, 12 Jun 2017 03:23:58 +0900 |
parents | 0f55adb73e14 |
children | 91e355a0408b |
files | contrib/packagelib.sh |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/packagelib.sh +++ b/contrib/packagelib.sh @@ -14,7 +14,7 @@ $HG version > /dev/null || { echo 'abort: hg version failed!'; exit 1 ; } - hgversion=`$HG version | sed -ne 's/.*(version \(.*\))$/\1/p'` + hgversion=`LANGUAGE=C $HG version | sed -ne 's/.*(version \(.*\))$/\1/p'` if echo $hgversion | grep + > /dev/null 2>&1 ; then tmp=`echo $hgversion | cut -d+ -f 2`