Ticket #18273 (closed defect: fixed)
post-activate code is not run if you call port activate
| Reported by: | ryandesign@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | MacPorts 1.9.0 |
| Component: | base | Version: | 1.7.0 |
| Keywords: | registry2.0 | Cc: | devans@…, raimue@… |
| Port: |
Description
If you "port install" a port that has a post-activate block, it gets run. For example, wget's post-activate block tells you about a config file you can install (if you haven't already done so):
$ sudo port install wget ---> Fetching wget ---> Verifying checksum(s) for wget ---> Extracting wget ---> Applying patches to wget ---> Configuring wget ---> Building wget ---> Staging wget into destroot ---> Installing wget @1.11.4_1 ---> Activating wget @1.11.4_1 To customize wget, you can copy wgetrc.sample to wgetrc in /opt/local/etc and then make changes. ---> Cleaning wget $
However, if the port is deactivated, and you "port activate" it, the post-activate block does not run, which is unexpected:
$ sudo port deactivate wget @1.11.4_1 ---> Deactivating wget @1.11.4_1 $ sudo port activate wget @1.11.4_1 ---> Activating wget @1.11.4_1 $
Change History
Note: See
TracTickets for help on using
tickets.

