RPM Community Forums

Mailing List Message of <rpm-devel>

Eliminating "rpm -q N.A" syntax

From: Jeff Johnson <n3npq@mac.com>
Date: Mon 07 Dec 2009 - 18:08:40 CET
Message-id: <A43E8D46-E97D-421D-ADD1-152129AAF02B@mac.com>
Ah, I've been waiting to get rid of this hackery for years ...

WHEREAS:

RPMTAG_NVRA is now a proper index containing a (configurable, which will
break if used, getting there ..) package N-V-R.A identifier ...

AND FURTHERMORE:

... since the RPMDBI_LABEL iterator iterates over
RPMTAG_NVRA with patterns for all access including --query/--verify/--erase ...

THEREFORE:
... there is no further need to support "rpm -q N.A".

INSTEAD:
	rpm -q '^N.*.A$'

R.I.P. Wotta hack ... there's another sick hack that's
gonna hit the bit bucket in the next 48 hours too...

Yippie!

73 de Jeff
Received on Mon Dec 7 18:09:30 2009
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.