From 80e0e61fd6c0b5f4f04ba16a116ad164895f42ae Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 28 Jun 2008 00:04:33 +0200 Subject: bin/pkg: Use package list to check for updates --- bin/pkg | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/pkg b/bin/pkg index 1faa16e..8a41873 100755 --- a/bin/pkg +++ b/bin/pkg @@ -127,8 +127,7 @@ vcs_add () { } vcs_incoming () { - [ -d .hg ] && {hg --quiet incoming; return} - [ -d .git ] && {true ; return} + [ $(grep ^"$1" $PDIR/.list | cut -d ' ' -f 3) = $(grep ^"$2" $PDIR/.list-remote | cut -d ' ' -f 3) ] } vcs_log () { @@ -337,7 +336,7 @@ pkg_upgrade () { check_installed "$1" cd $PDIR/$1 info "Looking for updates: $1" - NEW=$(vcs_incoming) + NEW=$(vcs_incoming "$1") if ([ $? = 0 ]) { clear_line info "Updating $1" -- cgit v1.2.3