Improve livecheck.type none handling

Return early if possible, and print a debug message to make it clear
that this is why no livecheck is happening.

Closes: https://github.com/macports/macports-base/pull/375
This commit is contained in:
Joshua Root
2026-03-28 15:09:17 +11:00
parent acd7868b5a
commit 5da34f365c
+8
View File
@@ -86,6 +86,13 @@ proc portlivecheck::_livecheck_main {{async no}} {
homepage portpath \
master_sites name subport
if {${livecheck.type} eq "none"} {
if {!$async} {
ui_debug "livecheck.type is none"
}
return 0
}
variable async_job
variable tempfilename
@@ -324,6 +331,7 @@ proc portlivecheck::_livecheck_main {{async no}} {
}
}
"none" {
ui_debug "livecheck.type is none"
}
default {
ui_error "unknown livecheck.type ${livecheck.type}"