summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-06-28 12:20:22 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-06-28 12:20:22 +0200
commit31a6ac7019198b01a4dffcc87c309215e7148387 (patch)
treea76843b06b5a756f082c78118ef635ae4c29ac4c /bin
parentfa4bf243d9966fc973d9d2bf11cc26199505dd1b (diff)
bin/pkg: pkg_list_*: use package list
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pkg8
1 files 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...