Expose portstartupitem::loaded without portstartupitem_run

Closes: https://trac.macports.org/ticket/74185
This commit is contained in:
Joshua Root
2026-07-04 21:24:37 +10:00
parent 756606eb77
commit 1ad9fd370c
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -5,6 +5,10 @@
package provide portstartupitem 1.0
namespace eval portstartupitem {
proc loaded {} {
package require portstartupitem_run
return [_loaded]
}
}
# Newly added keys:
+1 -1
View File
@@ -296,7 +296,7 @@ proc startupitem_create {} {
# Check if this port's startupitems are loaded
# Returns: list of loaded startupitems
proc loaded {} {
proc _loaded {} {
set launchctl_path ${::portutil::autoconf::launchctl_path}
if {$launchctl_path eq ""} {
# assuming not loaded if there's no launchctl