commit 1e003c6
hovercats
·
2025-05-23 15:32:47 +0000 UTC
parent c5d3b20
put the for loop outside of pkg_build function like the rest
1 files changed,
+15,
-17
M
rcpm
M
rcpm
+15,
-17
1@@ -80,24 +80,22 @@ fn pkg_install {
2 }
3
4 fn pkg_build {
5- for (pkg) {
6- cd $RCPM_PATH/$pkg
7- if (test ! -f url) git submodule update --init --checkout src
8- if not {
9- chksum_pkg $pkg
10- rm -rf src
11- if (test -f fetch.rc) {
12- ./fetch.rc
13- }
14- if not unpack_pkg $archive
15+ cd $RCPM_PATH/$pkg
16+ if (test ! -f url) git submodule update --init --checkout src
17+ if not {
18+ chksum_pkg $pkg
19+ rm -rf src
20+ if (test -f fetch.rc) {
21+ ./fetch.rc
22 }
23- cd src
24- destdir=/tmp/$pid/$pkg
25- ../build
26- cd $destdir
27- packup_pkg
28- pkg_install
29+ if not unpack_pkg $archive
30 }
31+ cd src
32+ destdir=/tmp/$pid/$pkg
33+ ../build
34+ cd $destdir
35+ packup_pkg
36+ pkg_install
37 }
38
39 fn get_manifest {
40@@ -118,7 +116,7 @@ fn list_pkgs {
41 switch($1) {
42 case b
43 shift
44- pkg_build $*
45+ for (pkg) pkg_build $pkg
46 case c
47 shift
48 for (pkg) chksum_pkg $pkg