1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00

Simplify mercurial revision command

Not only does this require less sed-magic, it also fixes FS#12286 where
fetching the revision number fails if mercurial is in compact mode.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2008-11-30 16:07:06 -06:00
parent f7192b5958
commit 346139298b

View File

@ -1062,7 +1062,7 @@ devel_check() {
hg clone $_hgroot/$_hgrepo ./src/$_hgrepo hg clone $_hgroot/$_hgrepo ./src/$_hgrepo
cd ./src/$_hgrepo cd ./src/$_hgrepo
fi fi
newpkgver=$(hg tip | sed -n '1s/[^0-9]*\([^:]*\):.*$/\1/p') newpkgver=$(hg tip --template "{rev}")
cd ../../ cd ../../
fi fi