From 31a6ac7019198b01a4dffcc87c309215e7148387 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 28 Jun 2008 12:20:22 +0200 Subject: bin/pkg: pkg_list_*: use package list --- bin/pkg | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/bin/pkg b/bin/pkg index 1d747c3..d1445ab 100755 --- a/bin/pkg +++ b/bin/pkg @@ -383,15 +383,11 @@ pkg_changesrc () { } pkg_list_installed () { - =ls -1 $PDIR + cut -d ' ' -f 1 $PDIR/.list } pkg_list_available () { - if ([ "$PKG_PROTO" = 'ssh' ]) { - ssh -q "$PKG_HOST" ls -1 "$PKG_PATH" - } elif ([ "$PKG_PROTO" = 'file' ]) { - ls -1 "$PKG_PATH" - } + cut -d ' ' -f 1 $PDIT/.list-remote } # Local modifications should not be overseen... -- cgit v1.2.3