if {$subport != $name}: '!=' vs. 'ne'
Mojca Miklavec
mojca at macports.org
Wed Dec 4 23:10:36 PST 2013
On Fri, Nov 29, 2013 at 9:06 AM, Ryan Schmidt wrote:
>
>> +if {${subport} != ${name}} {
>
> Remember to use eq and ne for string comparisons instead of == and !=.
But someone should commit massive changes to the ports then.
Running "grep -r subport ." shows that just about any given port uses
if {$subport != $name}
(Next time when I would create a new port, I would open a "random"
other port and copy the line from there, so the same mistake would
keep proliferating.)
Mojca
More information about the macports-dev
mailing list