diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-05-20 19:26:55 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-05-20 19:26:55 +0200 |
commit | 518b9a107ef971ba2ce8c0c8f71e2c3e7dc77f4a (patch) | |
tree | f7f78a10fbab9f8d2f90c51ddee8d15b6c16e649 | |
parent | cf8537cc9913e06abfe92c262d937802d4ac75dc (diff) |
bin/pkg: Use pull --update instead of fetch to support hg<1.0
-rwxr-xr-x | bin/pkg | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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' |