dev port or subport?
Ryan Schmidt
ryandesign at macports.org
Thu Sep 25 13:37:40 PDT 2014
On Sep 25, 2014, at 3:16 PM, Lawrence Velázquez wrote:
>
> On Sep 25, 2014, at 3:46 PM, Ryan Schmidt wrote:
>
>> I was once chastised for writing "subport foo" when the port's name is "foo". Instead, what we usually write is:
>>
>> if {${name} eq ${subport}} {
>
> I've always considered this form to be ugly and obtuse. Is this functionally different? Or "correct" in a way that `subport foo` isn't?
Joshua told me he never expected anyone to write that; see this prior discussion:
https://lists.macosforge.org/pipermail/macports-dev/2012-March/thread.html#18369
Re-reading it to refresh my memory, it seemed that is caused some problem with getting all the port's subports into the portindex.
IIRC, that was later corrected, but I'm not sure.
Using the "if" form has the advantage that you can then add an "else" clause. This is useful in some situations.
More information about the macports-dev
mailing list