From 518b9a107ef971ba2ce8c0c8f71e2c3e7dc77f4a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 20 May 2008 19:26:55 +0200 Subject: bin/pkg: Use pull --update instead of fetch to support hg<1.0 --- bin/pkg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/pkg b/bin/pkg index 42e4748..15d2d1c 100755 --- a/bin/pkg +++ b/bin/pkg @@ -4,7 +4,8 @@ PKG_ROOT="ssh://derf.homelinux.org/packages" VCS_CMD="hg" VCS_OPTIONS="--quiet" VCS_ADD="clone" -VCS_UPDATE="fetch" +VCS_UPDATE="pull" +VCS_UPDATE_OPTIONS="--update" CL_OPTIONS="-q" local info=$'\e[0;36m' local reset=$'\e[0m' @@ -70,7 +71,7 @@ pkg_update () { echo_status "Updating package $i..." check_deps "$i" cd $i - $VCS_CMD $VCS_OPTIONS $VCS_UPDATE + $VCS_CMD $VCS_OPTIONS $VCS_UPDATE $VCS_UPDATE_OPTIONS checklinks $CL_OPTIONS if [ -f hooks/post-update ]; then echo_status 'Executing post-update hook' -- cgit v1.2.3