Browse Source

support powerpc64 properly, always fetch xxx dates (RC/BETA), properly

include vm type for RC/BETA
main
John-Mark Gurney 5 years ago
parent
commit
402a9f0d25
Signed by: jmg GPG Key ID: 205F0B33DD006ADA
2 changed files with 8 additions and 4 deletions
  1. +1
    -1
      addinfo.sh
  2. +7
    -3
      mksnapidx.awk

+ 1
- 1
addinfo.sh View File

@@ -83,7 +83,7 @@ done

if [ x"$complete" = x"1" ]; then
sort -u snapshot.complete.idx | xz > snapshot.complete.idx.xz
awk '$5 >= "'"$1"'" {
awk '$5 == "xxx" || $5 >= "'"$1"'" {
if (!system("wget --method=HEAD " $9))
print
}


+ 7
- 3
mksnapidx.awk View File

@@ -77,7 +77,10 @@ $1 == "SHA512" {
# make arch part, may include additional part
arch = parts[4]
basearch = arch
if (parts[4] == "arm" || (parts[4] == "powerpc" && parts[5] == "powerpcspe") || parts[4] == "arm64") {
if (parts[4] == "arm" ||
(parts[4] == "powerpc" && parts[5] == "powerpcspe") ||
(parts[4] == "powerpc" && parts[5] == "powerpc64") ||
parts[4] == "arm64") {
# FreeBSD-11.3-STABLE-arm64-aarch64-20191011-r353406-memstick.img
basearch = parts[5]
arch = parts[4] "-" parts[5]
@@ -133,9 +136,10 @@ $1 == "SHA512" {
}
}
if (index(parts[3], "BETA") == 1 || index(parts[3], "RC") == 1) {
if (type == "vm")
if (type == "vm") {
vers = dotparts[3]
url = relvmroot parts[2] "-" parts[3] "/" basearch "/Latest/" fname
else
} else
url = relisoroot parts[2] "/" fname
} else {
if (type == "vm") {


Loading…
Cancel
Save