From 3668d996feaa847d9fa0617cbf3ad3f9ea3ae703 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 2 Jul 2008 19:05:26 +0200 Subject: bin/pkg: Added list_is_installed and list_exists, will replace check_installed and check_valid --- bin/pkg | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/pkg b/bin/pkg index 8b7177b..096bf33 100755 --- a/bin/pkg +++ b/bin/pkg @@ -146,6 +146,15 @@ vcs_upgrade () { } ## List stuff + +list_is_installed () { + grep ^"$1 " $PDIR/.list +} + +list_exists () { + grep ^"$1 " $PDIR/.list-remote +} + list_incoming () { [ "$(list_local_version $1)" != "$(list_remote_version $1)" ] } -- cgit v1.2.3