diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-28 00:04:33 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-28 00:04:33 +0200 |
commit | 80e0e61fd6c0b5f4f04ba16a116ad164895f42ae (patch) | |
tree | 21e638b2b7dc533654af18c70130acce8cd915fb /bin | |
parent | bc9190120ec39191fce460096ed37b50eeb3319c (diff) |
bin/pkg: Use package list to check for updates
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pkg | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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" |