mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-10 21:38:19 -05: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:
parent
f7192b5958
commit
346139298b
@ -1062,7 +1062,7 @@ devel_check() {
|
||||
hg clone $_hgroot/$_hgrepo ./src/$_hgrepo
|
||||
cd ./src/$_hgrepo
|
||||
fi
|
||||
newpkgver=$(hg tip | sed -n '1s/[^0-9]*\([^:]*\):.*$/\1/p')
|
||||
newpkgver=$(hg tip --template "{rev}")
|
||||
cd ../../
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user