commit 9b1e966
hovercats
·
2026-02-12 21:39:31 +0000 UTC
parent 46b5568
put fetch_git into dl_pkg, as we only need to run it from here
1 files changed,
+5,
-7
M
rcpm
M
rcpm
+5,
-7
1@@ -25,15 +25,13 @@ if (~ $#RCPM_CACHE 0) {
2
3 fn rcpm_help log {'Usage: rcpm b|c|d||h|i|l|m|s'}
4
5-fn fetch_git {
6- git submodule --quite update --init --checkout src
7- git -C src clean -xfdq
8- git -C src reset --hard
9-}
10-
11 fn dl_pkg {
12 cd $RCPM_PATH/$pkg
13- if (test -f .submodule) fetch_git
14+ if (test -f .submodule) {
15+ git submodule --quite update --init --checkout src
16+ git -C src clean -xfdq
17+ git -C src reset --hard
18+ }
19 if (test -f url) {
20 if (test -f sha256) {
21 if (test ! -f `{awk '{print $2}' sha256}) curl -LK url -O