commit a5b945a

hovercats  ·  2026-02-12 22:34:44 +0000 UTC
parent feddc6c
use curl --skip-existing instead of elaborate tests in dl_pkg
1 files changed,  +1, -11
M rcpm
M rcpm
+1, -11
 1@@ -31,17 +31,7 @@ fn dl_pkg {
 2 		git -C src clean -xfdq
 3 		git -C src reset --hard
 4 	}
 5-	if (test -f url) {
 6-		if (test -f sha256) {
 7-			if (test ! -f `{awk '{print $2}' sha256}) curl -LK url -O
 8-			if not log 'File already downloaded'
 9-		}
10-		if not {
11-			log 'Warning: sha256 file not found, downloading anyway...'
12-			curl -LK url -O
13-		}
14-	}
15-	if not errexit 'Url file not found!'
16+	if (test -f url) curl --skip-existing -LK url -O
17 }
18 
19 fn chksum_pkg {