Skip to content

Commit

Permalink
Change "apt-cyg show" to "apt-cyg list"
Browse files Browse the repository at this point in the history
This puts apt-cyg more in line with "dpkg --list".

The plan is to merge "apt-cyg show" and "apt-cyg find" into "apt-cyg list".
  • Loading branch information
Steven Penny committed Mar 16, 2014
1 parent ca292c5 commit 8229393
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions apt-cyg
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function usage()
echo ' "apt-cyg install <package names>" to install packages'
echo ' "apt-cyg remove <package names>" to remove packages'
echo ' "apt-cyg update" to update setup.ini'
echo ' "apt-cyg show" to show installed packages'
echo ' "apt-cyg list" to list installed packages'
echo ' "apt-cyg find <patterns>" to find packages matching patterns'
echo ' "apt-cyg describe <patterns>" to describe packages matching patterns'
echo ' "apt-cyg packageof <commands or files>" to locate parent packages'
Expand Down Expand Up @@ -173,7 +173,7 @@ do
shift
;;

update | show | find | describe | packageof | install | remove)
update | list | find | describe | packageof | install | remove)
if (( ${#command} ))
then
packages+=" $1"
Expand Down Expand Up @@ -209,7 +209,7 @@ case "$command" in
getsetup
;;

show)
list)
echo The following packages are installed: >&2
awk 'NR>1 && $0=$1' /etc/setup/installed.db
;;
Expand Down Expand Up @@ -245,10 +245,7 @@ case "$command" in
for pkg in $packages
do
key=$(type -P "$pkg" | sed s./..)
if (( ! ${#key} ))
then
key=$pkg
fi
(( ${#key} )) || key=$pkg
for manifest in /etc/setup/*.lst.gz
do
found=$(gzip -cd $manifest | grep -c "$key")
Expand Down

0 comments on commit 8229393

Please sign in to comment.