summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2008-11-30 23:07:06 +0100
committerDan McGee <dan@archlinux.org>2008-11-30 23:07:06 +0100
commit346139298bc547d1cbeb5d41f2067577b96ff1fa (patch)
treefca328aea60856e2e75f8a77c95c28d6cd052c22
parentf7192b595881103f145a118d63d1b342ffd740b4 (diff)
downloadpacman-346139298bc547d1cbeb5d41f2067577b96ff1fa.tar.gz
pacman-346139298bc547d1cbeb5d41f2067577b96ff1fa.tar.xz
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>
-rw-r--r--scripts/makepkg.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 599f0f9c..4cc255cc 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -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