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:
parent
f7192b5958
commit
346139298b
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user