"wajig status" gives warning message about stdin not sorted

Bug #978172 reported by Graeme Hewson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wajig (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

"wajig status" of any package gives a warning messsage as follows:

wajig status python
Package Installed Previous Now State
=======================-===============-===============-===============-=====
join: -:204: is not sorted: glib-networking-common install
python 2.7.2-9ubuntu6 N/A 2.7.2-7ubuntu2 install

The problem is in commands.do_status() where the output from "dpkg --get-selections" is piped to join. The output from "dpkg --get-selections" looks as though it's sorted, but this isn't documented, and changing LC_ALL has no effect. Fix by adding "sort" to the pipe (attached).

I also looked at the source for wajig version 2.4.1, and it seems the problem is there too, where do_status() is in util.py.

Tags: patch
Revision history for this message
Graeme Hewson (ghewson) wrote :
Revision history for this message
Tshepang Lekhonkhobe (tshepang) wrote : Re: [Bug 978172] Re: "wajig status" gives warning message about stdin not sorted

On Tue, Apr 10, 2012 at 18:33, Graeme Hewson <email address hidden> wrote:
> ** Patch added: "wajig.status.patch"
>   https://bugs.launchpad.net/bugs/978172/+attachment/3041291/+files/wajig.status.patch

Thanks a lot. This is now commited.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "wajig.status.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Changed in wajig (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.