summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-05-20 19:26:55 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-05-20 19:26:55 +0200
commit518b9a107ef971ba2ce8c0c8f71e2c3e7dc77f4a (patch)
treef7f78a10fbab9f8d2f90c51ddee8d15b6c16e649 /bin
parentcf8537cc9913e06abfe92c262d937802d4ac75dc (diff)
bin/pkg: Use pull --update instead of fetch to support hg<1.0
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pkg5
1 files changed, 3 insertions, 2 deletions
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'