[mpbb] branch master updated: List subports in dependency order

Joshua Root jmr at macports.org
Thu Mar 15 05:58:54 UTC 2018


On 2018-3-15 16:21 , Ryan Schmidt wrote:
> 
>> @@ -125,9 +125,7 @@ list-subports() {
>>      mkdir -p "$option_log_dir"
>>      > "$log_subports_progress"
>>  
>> -    for p in "$@"; do
>> -        print-subports "$option_archive_site" "$p" && success=1
>> -    done
>> +    print-subports "$option_archive_site" "$*" && success=1
> 
> Should this be "$@" here instead of "$*"?

No, that would pass each positional parameter as a separate argument.
You could do it that way but you'd need to change the print-subports
function as well (to use 'shift' and then use "$@" when calling the Tcl
script).

- Josh


More information about the macports-dev mailing list