Browse Source

add support for the CI images..

main
John-Mark Gurney 2 years ago
parent
commit
98a4b628a0
Signed by: jmg GPG Key ID: 205F0B33DD006ADA
1 changed files with 11 additions and 2 deletions
  1. +11
    -2
      mksnapidx.awk

+ 11
- 2
mksnapidx.awk View File

@@ -29,9 +29,11 @@
BEGIN { BEGIN {
vmroot = "https://download.freebsd.org/ftp/snapshots/VM-IMAGES/" vmroot = "https://download.freebsd.org/ftp/snapshots/VM-IMAGES/"
isoroot = "https://download.freebsd.org/ftp/snapshots/ISO-IMAGES/" isoroot = "https://download.freebsd.org/ftp/snapshots/ISO-IMAGES/"
bciroot = "https://download.freebsd.org/ftp/snapshots/CI-IMAGES/"


relvmroot = "https://download.freebsd.org/ftp/releases/VM-IMAGES/" relvmroot = "https://download.freebsd.org/ftp/releases/VM-IMAGES/"
relisoroot = "https://download.freebsd.org/ftp/releases/ISO-IMAGES/" relisoroot = "https://download.freebsd.org/ftp/releases/ISO-IMAGES/"
relbciroot = "https://download.freebsd.org/ftp/releases/CI-IMAGES/"
} }


tolower($1) == "message-id:" { tolower($1) == "message-id:" {
@@ -86,6 +88,7 @@ function isrelease(relpart) {
#FreeBSD-12.1-RC1-amd64-mini-memstick.img.xz #FreeBSD-12.1-RC1-amd64-mini-memstick.img.xz
#FreeBSD-12.1-RELEASE-arm64-aarch64.vmdk.xz #FreeBSD-12.1-RELEASE-arm64-aarch64.vmdk.xz
#FreeBSD-13.1-RELEASE-riscv-riscv64.vmdk.xz #FreeBSD-13.1-RELEASE-riscv-riscv64.vmdk.xz
#FreeBSD-13.1-RELEASE-amd64-BASIC-CI.raw.xz


$1 == "SHA512" { $1 == "SHA512" {
# Strip parens # Strip parens
@@ -160,13 +163,19 @@ $1 == "SHA512" {
} }
} }
if (isrelease(parts[3])) { if (isrelease(parts[3])) {
if (type == "vm") {
if (platform == "BASIC-CI") {
vers = dotparts[3]
url = relbciroot parts[2] "-" parts[3] "/" basearch "/Latest/" fname
} else if (type == "vm") {
vers = dotparts[3] vers = dotparts[3]
url = relvmroot parts[2] "-" parts[3] "/" basearch "/Latest/" fname url = relvmroot parts[2] "-" parts[3] "/" basearch "/Latest/" fname
} else } else
url = relisoroot parts[2] "/" fname url = relisoroot parts[2] "/" fname
} else { } else {
if (type == "vm") {
if (platform == "BASIC-CI") {
vers = dotparts[3]
url = cbiroot parts[2] "-" parts[3] "/" basearch "/" date "/" fname
} else if (type == "vm") {
vers = dotparts[3] vers = dotparts[3]
url = vmroot parts[2] "-" parts[3] "/" basearch "/" date "/" fname url = vmroot parts[2] "-" parts[3] "/" basearch "/" date "/" fname
} else } else


Loading…
Cancel
Save