A utility for downloading and verifying FreeBSD releases and snapshots
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- # This script can be used to fix up errors in the main database.
- #
- # This fixes up an error where the CI URL prefex wasn't properly
- # added.
-
- (
- awk '{ print $9 }' snapshot.complete.idx | grep -v ^https;
- echo 2;
- cat snapshot.complete.idx) |
- awk '
- BEGIN {
- state = 0
- }
-
- state == 0 && $0 == "2" {
- state = 1
- next
- }
-
- state == 0 {
- fix[$1] = 1
- }
-
- state == 1 {
- if ($9 in fix)
- $9 = "https://download.freebsd.org/ftp/snapshots/CI-IMAGES/" $9
-
- print
- }
- '
|