[88570] trunk/dports/net/sslh/Portfile

Ryan Schmidt ryandesign at macports.org
Wed Jan 4 18:10:11 PST 2012


On Jan 4, 2012, at 09:10, snc at macports.org wrote:

> Revision: 88570
>          http://trac.macports.org/changeset/88570
> Author:   snc at macports.org
> Date:     2012-01-04 07:09:59 -0800 (Wed, 04 Jan 2012)
> Log Message:
> -----------
> sslh: add warning message to help if there are errors

Why not display the warning only if an error actually occurred? See the lisaem port for an example.


> Modified: trunk/dports/net/sslh/Portfile
> ===================================================================
> --- trunk/dports/net/sslh/Portfile	2012-01-04 15:08:30 UTC (rev 88569)
> +++ trunk/dports/net/sslh/Portfile	2012-01-04 15:09:59 UTC (rev 88570)
> @@ -42,6 +42,7 @@
> 
> pre-activate {
>     if {[file exists /var/run/sslh.pid]} {
> +        ui_warn "PID file /var/run/sslh.pid exists and may need to be removed manually"
>         delete /var/run/sslh.pid
>     }
> }





More information about the macports-dev mailing list