You've already forked macports-base
mirror of
https://github.com/macports/macports-base.git
synced 2026-07-12 18:18:43 -07:00
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:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user