commit 56c3ca7
hovercats
·
2026-07-17 17:04:19 +0000 UTC
parent b4014d0
remove list_pkg function, and just put the code under `l` flag, where it was called. it was used elsewhere, so the function was redundant
1 files changed,
+4,
-6
M
rcpm
M
rcpm
+4,
-6
1@@ -117,11 +117,6 @@ fn get_local_ver {
2 _rev=$_version(2)
3 }
4
5-fn list_pkg {
6- get_local_ver
7- log $pkg $_ver-$_rev
8-}
9-
10 fn rm_pkg {
11 filelist=`{cat $RCPM_ROOT/$RCPM_DB/$pkg/manifest}
12 for (files in $filelist) {
13@@ -166,7 +161,10 @@ switch($cmd) {
14 log $pkg $_ver-$_rev
15 }
16 case *
17- for (pkg) list_pkg $pkg
18+ for (pkg) {
19+ get_local_ver
20+ log $pkg $_ver-$_rev
21+ }
22 }
23 case m
24 cat $RCPM_ROOT/$RCPM_DB/$1/manifest