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.
 
 
 
 

31 lines
455 B

  1. # This script can be used to fix up errors in the main database.
  2. #
  3. # This fixes up an error where the CI URL prefex wasn't properly
  4. # added.
  5. (
  6. awk '{ print $9 }' snapshot.complete.idx | grep -v ^https;
  7. echo 2;
  8. cat snapshot.complete.idx) |
  9. awk '
  10. BEGIN {
  11. state = 0
  12. }
  13. state == 0 && $0 == "2" {
  14. state = 1
  15. next
  16. }
  17. state == 0 {
  18. fix[$1] = 1
  19. }
  20. state == 1 {
  21. if ($9 in fix)
  22. $9 = "https://download.freebsd.org/ftp/snapshots/CI-IMAGES/" $9
  23. print
  24. }
  25. '