From 6dda4ac1a71364e532c280233a0a49c87abcf179 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 21 May 2008 17:26:47 +0200 Subject: bin/pkg: Add 'list' to list installed packages --- bin/pkg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/pkg b/bin/pkg index b813538..be0b347 100755 --- a/bin/pkg +++ b/bin/pkg @@ -98,9 +98,14 @@ pkg_changesrc () { } } +pkg_list_installed () { + =ls -1 $PDIR +} + case "$1" in add) pkg_add "$2" ;; changeroot) pkg_changesrc "$2" ;; + list) pkg_list_installed ;; remove) pkg_remove "$2" ;; update) pkg_update_wrapper "$2" ;; esac -- cgit v1.2.3