summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pkg')
-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...