On Jan 4, 2012, at 09:10, [email protected] wrote:

> Revision: 88570
>          http://trac.macports.org/changeset/88570
> Author:   [email protected]
> 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
>     }
> }



_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to