commit e72806e

hovercats  ·  2026-07-18 18:12:31 +0000 UTC
parent bf3be02
exit if no sources exists
1 files changed,  +8, -1
M rcpm
M rcpm
+8, -1
 1@@ -30,9 +30,16 @@ fn dl_pkg {
 2 		git submodule update --init --checkout src
 3 		git -C src clean -xfdq
 4 		git -C src reset --hard
 5+		srcs=1
 6 	}
 7-	if (test -f url) curl --skip-existing -LK url -O
 8+	if (test -f url) {
 9+		curl --skip-existing -LK url -O
10+		srcs=1
11+	}
12+	if (test -d files/) srcs=1
13+	if (~ $#srcs 0) errexit 'No sources found'
14 	if not status=()
15+
16 }
17 
18 fn chksum_pkg {