[GSoC] migration
Umesh Singla
umeshksingla at macports.org
Sun Aug 6 12:11:23 UTC 2017
On Sat, Jul 22, 2017 at 7:26 AM, Joshua Root <jmr at macports.org> wrote:
>
> For now, I'd like to ask in what order does "registry::entry imaged"
>> returns the port list? Because I'm running the sorting function which the
>> restore_ports.tcl uses but it's giving me the ports in the same order as
>> result.
>>
>
> Probably just ordered by rowid, i.e. might as well be random. Note that
> the sort_ports proc from restore_ports.tcl does not take a list of registry
> references like registry::entry returns, but a list of strings representing
> port names, versions and variants in the format generated by 'port
> installed'.
>
`port installed` returns the result of `registry::entry imaged` sorted in
an alphabetical order, first by name, then version etc.
`registry::entry imaged` might be returning in a random order but sorting
it (with ports coming before their dependencies) doesn't change the result
at all.
- Umesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20170806/72a9e930/attachment.html>
More information about the macports-dev
mailing list