Changing the rpm default queryformat to include arch
Gilboa Davara
gilboad at gmail.com
Sun Nov 25 13:15:09 UTC 2007
On Wed, 2007-11-21 at 11:55 +0100, Hans de Goede wrote:
> 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.
> >
> > This is something that should've been done several releases ago really,
> > but since it presumably breaks all sorts of scripts people have it's
> > gotten delayed and delayed... The next major rpm.org release changes the
> > default anyway, this is just an initial step to see what breaks.
> >
> > If you know the change would break some of the buildsystem / other
> > critical Fedora infrastructure, please holler NOW! I can delay the
> > change a bit to allow critical pieces to be fixed first, but F9 *will*
> > have the new queryformat so better prepare for it...
> >
> > Fixing any scripts that absolutely rely on the old default is trivial:
> > just them use explicit --qf "%{name}-%{version}-%{release}"
> >
>
> Excellent then I can finally remove my rpm alias adding that as query format
> from my .bashrc :)
>
> Regards,
>
> Hans
>
>
No need to.
Just add %_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}
To your .rpmmacros.
- Gilboa
More information about the fedora-devel-list
mailing list