From 5efcc5ab12a61b91ef2f3c55784da3accb28dd7e Mon Sep 17 00:00:00 2001 From: Ziggy Tolnay Date: Sun, 19 Sep 2021 13:26:48 +1000 Subject: [PATCH 1/2] Added support for listing package categories --- apt-cyg | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/apt-cyg b/apt-cyg index 84a2d5f..f6de89e 100755 --- a/apt-cyg +++ b/apt-cyg @@ -75,6 +75,9 @@ OPERATIONS This will search each package in the master package list (setup.ini) for names that match regexp. + listcategories + List all package categories. + category Display all packages that are members of a named category. @@ -239,6 +242,11 @@ function apt-listall { done } +function apt-listcategories { + find-workspace + grep '^category: ' setup.ini | cut -c 11- | sort -u +} + function apt-listfiles { check-packages find-workspace @@ -643,7 +651,7 @@ do shift ;; - list | cache | remove | depends | listall | download | listfiles |\ + list | cache | remove | depends | listall | download | listfiles | listcategories |\ show | mirror | search | install | category | rdepends | searchall ) if [[ $command ]] then From 81c8a20c8b8d034cf1b8af95e1351983311d9a3e Mon Sep 17 00:00:00 2001 From: Ziggy Tolnay Date: Sun, 19 Sep 2021 13:27:47 +1000 Subject: [PATCH 2/2] Added support for listing package categories --- readme.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/readme.md b/readme.md index 5b44a03..f8dbc30 100644 --- a/readme.md +++ b/readme.md @@ -43,6 +43,9 @@ listall This will search each package in the master package list (setup.ini) for names that match regexp. +listcategories + List all package categories. + category Display all packages that are members of a named category.