Changing the rpm default queryformat to include arch

Panu Matilainen pmatilai at laiskiainen.org
Tue Nov 27 12:44:22 UTC 2007


On Tue, 27 Nov 2007, Ralf Corsepius wrote:

>
> On Tue, 2007-11-27 at 13:30 +0200, Panu Matilainen wrote:
>> On Tue, 27 Nov 2007, Ralf Corsepius wrote:
>>
>>>
>>> On Tue, 2007-11-27 at 13:10 +0200, Panu Matilainen wrote:
>>>> On Thu, 22 Nov 2007, Callum Lerwick wrote:
>>>>
>>>>>
>>>>> On Wed, 2007-11-21 at 10:49 +0200, Panu Matilainen wrote:
>>>>>> To put it shortly, I going to switch the default rpm queryformat to
>>>>>> include package architecture (ie what you get now with
>>>>>> rpm -q --qf "%{name}-%{version}-%{release}.%{arch}\n") in a few days or
>>>>>> so.
>>>>>
>>>>> Not %{name}-%|epoch?{%{epoch}:}|%{version}-%{release}.%{arch} ? :)
>>>>
>>>> FWIW, upstream rpm.org now uses this as the default queryformat and
>>>> supports it in queries etc:
>>>> [pmatilai at localhost rpm]$ ./rpmq -q gimp-2:2.4.1-1.fc8.x86_64
>>>> gimp-2:2.4.1-1.fc8.x86_64
>>> -1
>>>
>>>> The epoch is the most significant factor in version comparison, might as
>>>> well show it...
>>> with this queryformat people now will start bitching on why they can't
>>> find a file of this name - the same applies to "all small letters file
>>> names".
>>
>> I'm changing the default filename too to match this, for this very reason.
>
> Pardon, but now you are going too far - You have driven things into
> absurdity.

IMO the biggest absurdity here is the traditional behavior of hiding the 
epoch. Why should rpm try to [*] hide the most significant factor in it's 
version comparison?

[*] The epoch "leaks out" in failed dependency errors, forcing you to 
figure out what the heck this X: is and how to query it out of 
packages/rpmdb.

 	- Panu -




More information about the fedora-devel-list mailing list