From 7c3acda552f357e13818992a48e496445c959416 Mon Sep 17 00:00:00 2001 From: Joshua Root Date: Thu, 3 Apr 2025 10:57:07 +1100 Subject: [PATCH] update-mirrordb: don't error on missing portfile info --- tools/update-mirrordb.tcl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/update-mirrordb.tcl b/tools/update-mirrordb.tcl index 6dfe081..e90c93f 100755 --- a/tools/update-mirrordb.tcl +++ b/tools/update-mirrordb.tcl @@ -15,6 +15,10 @@ foreach var {mirror_done portfile_hash_cache portname_portfile_map} { } dict for {portname status} $mirror_done { + if {![dict exists $portname_portfile_map $portname]} { + ui_warn "$portname not found in portname_portfile_map" + continue + } set portfile [dict get $portname_portfile_map $portname] set hash [dict get $portfile_hash_cache $portfile] set hashurl ${mirrorcache_baseurl}SET/mirror.sha256.${portname}/${hash}