commit 3ddd504
hovercats
·
2025-05-23 12:28:16 +0000 UTC
parent 4d86c17
specify .tar.$tool instead of just the last extension. if a filename is just .gz, not tar.gz, users would have to use fetch.rc instead to unpack
1 files changed,
+3,
-3
M
rcpm
M
rcpm
+3,
-3
1@@ -29,11 +29,11 @@ fn chksum_pkg {
2 fn unpack_pkg {
3 for (archive in `{awk '{print $2}' sha256}) {
4 switch($archive) {
5- case *.gz
6+ case *.tar.gz
7 tool=gzip
8- case *.xz
9+ case *.tar.xz
10 tool=xz
11- case *.bz2
12+ case *.tar.bz2
13 tool=bzip2
14 case *
15 exit 1