commit 2e94bb3

hovercats  ·  2025-05-22 19:58:08 +0000 UTC
parent f564e5c
list all installed packages if `l` is ran without args
1 files changed,  +7, -0
M rcpm
M rcpm
+7, -0
 1@@ -130,6 +130,13 @@ switch($1) {
 2 		for (pkg) pkg_install $pkg
 3 	case l
 4 		shift
 5+		if (~ $#* 0) {
 6+			for (file in $RCPM_ROOT/$RCPM_DB/installed/*) {
 7+				pkg=`{basename $file}
 8+				get_local_ver
 9+				echo $pkg $_ver-$_rev
10+			}
11+		}
12 		for (pkg) list_pkgs $pkg
13 	case m
14 		shift