[140035] trunk/base/src/port1.0/portactivate.tcl
raimue at macports.org
raimue at macports.org
Mon Sep 7 09:09:03 PDT 2015
Revision: 140035
https://trac.macports.org/changeset/140035
Author: raimue at macports.org
Date: 2015-09-07 09:09:03 -0700 (Mon, 07 Sep 2015)
Log Message:
-----------
port1.0/portactivate.tcl:
Save notes after finishing the activation, which allows to append notes in the post-activate phase
Modified Paths:
--------------
trunk/base/src/port1.0/portactivate.tcl
Modified: trunk/base/src/port1.0/portactivate.tcl
===================================================================
--- trunk/base/src/port1.0/portactivate.tcl 2015-09-07 14:43:21 UTC (rev 140034)
+++ trunk/base/src/port1.0/portactivate.tcl 2015-09-07 16:09:03 UTC (rev 140035)
@@ -63,15 +63,12 @@
global subport version revision portvariants user_options PortInfo
registry_activate $subport $version $revision $portvariants [array get user_options]
- if {[info exists PortInfo(notes)] && [llength $PortInfo(notes)] > 0} {
- ui_notifications_append $subport $PortInfo(notes)
- }
return 0
}
proc portactivate::activate_finish {args} {
- global subport startupitem.autostart UI_PREFIX
+ global subport startupitem.autostart PortInfo UI_PREFIX
# Do this _after_ activate_main, because post-activate hooks might create
# the files needed for this
@@ -83,5 +80,10 @@
}
}
+ # Save notes for display by the port client
+ if {[info exists PortInfo(notes)] && [llength $PortInfo(notes)] > 0} {
+ ui_notifications_append $subport $PortInfo(notes)
+ }
+
return 0
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150907/738e4421/attachment-0001.html>
More information about the macports-changes
mailing list