commit 4d86c17

Cats that hovers  ·  2025-05-22 23:14:59 +0000 UTC
parent 6e5ce29
check for fetch.rc when we unpack tarballs and use that instead, if present.

there will be some usecases where users want tarballs extracted in some specific way, that falls outside of the scope of the default behavior. this will work as a fallback in these cases.
1 files changed,  +4, -1
M rcpm
M rcpm
+4, -1
 1@@ -86,7 +86,10 @@ fn pkg_build {
 2 		if not {
 3 			chksum_pkg $pkg
 4 			rm -rf src
 5-			unpack_pkg $archive
 6+			if (test -f fetch.rc) {
 7+				./fetch.rc
 8+			}
 9+			if not unpack_pkg $archive
10 		}
11 		cd src
12 		destdir=/tmp/$pid/$pkg