[OE-core] Sorting rootfs manifest with .ipk packaging

Otavio Salvador otavio.salvador at ossystems.com.br
Thu Oct 1 18:57:32 UTC 2015


On Thu, Oct 1, 2015 at 3:55 PM, Andre McCurdy <armccurdy at gmail.com> wrote:
> On Wed, Sep 30, 2015 at 5:48 PM, Khem Raj <raj.khem at gmail.com> wrote:
>>
>>> On Sep 30, 2015, at 3:03 PM, Andre McCurdy <armccurdy at gmail.com> wrote:
>>>
>>> I'd like the rootfs manifest to be sorted when using .ipk packaging.
>>> Would a patch to sort the result of OpkgPkgsList().list be acceptable?
>>> Or would the sorting be better done elsewhere?
>>
>> its not clear what kind of sorting are you looking for. It could be a good thing in general if its
>> configurable and you can explain the value add of doing it.
>
> Aim is to make the manifest for each rootfs a little more human
> readable by sorting the list of installed packages alphabetically.
>
> Currently, when ipk packaging is used, the order of packages in the
> manifest matches the order in /var/lib/opkg/status, which appears to
> be "random".
>
> It looks like RpmPkgsList().list does always sort it's results before
> returning, so adding a sort to OpkgPkgsList().list would make it
> consistent with the RPM equivalent.

Consistency is always good. So please prepare a patch.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-core mailing list