Skip to content

Commit

Permalink
_archive_available: also check for archive signature
Browse files Browse the repository at this point in the history
  • Loading branch information
jmroot committed Sep 20, 2023
1 parent 9f93b3a commit a774938
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/port1.0/portutil.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a774938

Please sign in to comment.