commit 36fb5e3
hovercats
·
2026-09-08 17:14:16 +0000 UTC
parent bf2ab34
use an if statement instead of doing cmd || {cmd cmd} when running install_pkg
1 files changed,
+4,
-2
M
rcpm
M
rcpm
+4,
-2
1@@ -121,8 +121,10 @@ fn gen_manifest {
2 fn install_pkg {
3 cd $RCPM_ROOT
4 get_ver || status=()
5- check_prebuilt || {$tool -dc $RCPM_CACHE/$pkg@$ver-$rev.tar.$ext | pax -r
6- log $pkg installed successfully}
7+ if (! check_prebuilt) {
8+ $tool -dc $RCPM_CACHE/$pkg@$ver-$rev.tar.$ext | pax -r
9+ log $pkg installed successfully
10+ }
11 }
12
13 fn build_pkg {