commit 49b8fd1
hovercats
·
2026-07-17 12:49:39 +0000 UTC
parent 5ea46f8
do some better testing for the existens of sources
1 files changed,
+5,
-9
M
rcpm
M
rcpm
+5,
-9
1@@ -32,21 +32,17 @@ fn dl_pkg {
2 git -C src reset --hard
3 }
4 if (test -f url) curl --skip-existing -LK url -O
5- if not status=()
6+ if not {
7+ if (test -d files/) status=()
8+ if not errexit 'No sources found!'
9+ }
10 }
11
12 fn chksum_pkg {
13 cd $RCPM_PATH/$pkg
14 dl_pkg
15 if (test -f sha256) sha256sum -c sha256
16- if not {
17- if (test ! -f .submodule) {
18- if (test ! -d files/) {
19- errexit 'No submodule, files/ or sha256 file found!'
20- }
21- }
22- if not status=()
23- }
24+ if not status=()
25 }
26
27 fn unpack_pkg {