From a774938ffe2311ed5a72bd1d35ea360ae2662e3c Mon Sep 17 00:00:00 2001 From: Joshua Root Date: Wed, 20 Sep 2023 19:47:08 +1000 Subject: [PATCH] _archive_available: also check for archive signature See: https://trac.macports.org/ticket/68192 --- src/port1.0/portutil.tcl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/port1.0/portutil.tcl b/src/port1.0/portutil.tcl index b50c4eb615..cd7a0d8322 100644 --- a/src/port1.0/portutil.tcl +++ b/src/port1.0/portutil.tcl @@ -3597,7 +3597,8 @@ proc _archive_available {} { ui_debug "Fetching $archivename archive size" # curl getsize can return -1 instead of throwing an error for # nonexistent files on FTP sites. - if {![catch {curl getsize $url} size] && $size > 0} { + if {![catch {curl getsize $url} size] && $size > 0 + && ![catch {curl getsize ${url}.rmd160} sigsize] && $sigsize > 0} { set archive_available_result 1 return 1 }