index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2012-02-10 08:20:13 +1000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-02-11 14:52:54 -0600 |
commit | 9b1ab3d76713d99a11d8da2204557856d59bd3a5 (patch) | |
tree | bfa099a5beee52a191ed1bf879c82b3f762d9423 /scripts | |
parent | ea32924c626b828b3752c021362a6e0e7f79885c (diff) |
-rw-r--r-- | scripts/makepkg.sh.in | 9 |
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 6a1f3141..a10dc5d3 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1730,8 +1730,13 @@ devel_check() { msg "$(gettext "Determining latest %s revision...")" 'hg' if [[ -d ./src/$_hgrepo ]] ; then cd ./src/$_hgrepo - hg pull - hg update + local ret=0 + hg pull || ret=$? + if (( ! ret )); then + hg update + elif (( ret != 1 )); then + return 1 + fi else [[ ! -d ./src/ ]] && mkdir ./src/ hg clone $_hgroot/$_hgrepo ./src/$_hgrepo |