On 16 May 2016 at 20:23, Guillem Jover <[email protected]> wrote:
> Hi!
>
> On Mon, 2016-05-16 at 20:01:13 -0400, Felipe Sateler wrote:
>> Package: dpkg
>> Version: 1.18.7
>> Severity: minor
>> File: /usr/bin/dpkg-query
>
>> The dpkg-query manpage says:
>>
>> > It contains the abbreviated package status, such as “ii” (since dpkg 
>> > 1.16.2).
>>
>> That turns out to be misleading, since the actual variable contains a
>> trailing space:
>>
>> $ dpkg-query --showformat='${db:Status-Abbrev}${Package}\n' --show dpkg 
>> anjuta
>> un anjuta
>> ii dpkg
>
> Actually, the behavior is correct, what might be misleading is the
> documentation. The abbreviated status contains three characters, one
> for the desired action, one of the package status and one for the
> error flag, which should usually be empty. Otherwise it would be ‘R’.
>
> I'll update the documentation to make that more clear.

Ah, that would be great indeed. I had no idea there was an error flag.
I suppose others don't either.

>
>> I think by now removing the space would be an API breakage (although
>> apparently nobody is using this[1]), so I think the thing to do now is
>> to fix the man page.
>
> Right, but not because the behavior is wrong. :)

:)


-- 

Saludos,
Felipe Sateler

Reply via email to