<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Oct 1, 2015 at 11:57 AM, Otavio Salvador <span dir="ltr">&lt;<a href="mailto:otavio.salvador@ossystems.com.br" target="_blank">otavio.salvador@ossystems.com.br</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Oct 1, 2015 at 3:55 PM, Andre McCurdy &lt;<a href="mailto:armccurdy@gmail.com">armccurdy@gmail.com</a>&gt; wrote:<br>
&gt; On Wed, Sep 30, 2015 at 5:48 PM, Khem Raj &lt;<a href="mailto:raj.khem@gmail.com">raj.khem@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; On Sep 30, 2015, at 3:03 PM, Andre McCurdy &lt;<a href="mailto:armccurdy@gmail.com">armccurdy@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I&#39;d like the rootfs manifest to be sorted when using .ipk packaging.<br>
&gt;&gt;&gt; Would a patch to sort the result of OpkgPkgsList().list be acceptable?<br>
&gt;&gt;&gt; Or would the sorting be better done elsewhere?<br>
&gt;&gt;<br>
&gt;&gt; its not clear what kind of sorting are you looking for. It could be a good thing in general if its<br>
&gt;&gt; configurable and you can explain the value add of doing it.<br>
&gt;<br>
&gt; Aim is to make the manifest for each rootfs a little more human<br>
&gt; readable by sorting the list of installed packages alphabetically.<br>
&gt;<br>
&gt; Currently, when ipk packaging is used, the order of packages in the<br>
&gt; manifest matches the order in /var/lib/opkg/status, which appears to<br>
&gt; be &quot;random&quot;.<br>
&gt;<br>
&gt; It looks like RpmPkgsList().list does always sort it&#39;s results before<br>
&gt; returning, so adding a sort to OpkgPkgsList().list would make it<br>
&gt; consistent with the RPM equivalent.<br>
<br>
</span>Consistency is always good. So please prepare a patch.</blockquote></div><br>Agreed. In addition to being more human readable, it&#39;d also be slightly easier to compare manifests if they&#39;re pre-sorted with a tool like &#39;comm&#39;.<br>-- <br><div class="gmail_signature">Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics</div>
</div></div>