commit 335fcb2
hovercats
·
2025-06-05 05:28:13 +0000 UTC
parent a542237
fix spacing
1 files changed,
+12,
-12
M
rcpm
M
rcpm
+12,
-12
1@@ -44,19 +44,19 @@ fn chksum_pkg {
2 }
3
4 fn unpack_pkg {
5- for (archive in `{awk '{print $2}' sha256}) {
6- switch($archive) {
7- case *.tar.gz
8- tool=gzip
9- case *.tar.xz
10- tool=xz
11- case *.tar.bz2
12- tool=bzip2
13- case *
14- exit 1
15- }
16- $tool -dc $archive | pax -r -s ',^[^/]*,src,'
17+ for (archive in `{awk '{print $2}' sha256}) {
18+ switch($archive) {
19+ case *.tar.gz
20+ tool=gzip
21+ case *.tar.xz
22+ tool=xz
23+ case *.tar.bz2
24+ tool=bzip2
25+ case *
26+ exit 1
27 }
28+ $tool -dc $archive | pax -r -s ',^[^/]*,src,'
29+ }
30 }
31
32 fn get_ver {