summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-06-28 00:04:33 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-06-28 00:04:33 +0200
commit80e0e61fd6c0b5f4f04ba16a116ad164895f42ae (patch)
tree21e638b2b7dc533654af18c70130acce8cd915fb /bin
parentbc9190120ec39191fce460096ed37b50eeb3319c (diff)
bin/pkg: Use package list to check for updates
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pkg5
1 files changed, 2 insertions, 3 deletions
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"