diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-05-21 17:26:47 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-05-21 17:26:47 +0200 |
commit | 6dda4ac1a71364e532c280233a0a49c87abcf179 (patch) | |
tree | a9b347e3cf631d1965a0d0049a14c2dd3df7ac44 | |
parent | 14d0790f67213085a9231a5fb8ac267d84dd6c6a (diff) |
bin/pkg: Add 'list' to list installed packages
-rwxr-xr-x | bin/pkg | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |