[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: --queryformat "%{INSTALLPREFIX}\n" broken for multiple prefixes?
- From: Jeff Johnson <jbj JBJ ORG>
- To: rpm-list redhat com
- Subject: Re: --queryformat "%{INSTALLPREFIX}\n" broken for multiple prefixes?
- Date: Sat, 30 Sep 2000 13:23:36 -0400
On Sat, Sep 30, 2000 at 11:18:27AM -0500, Brent J. Nordquist wrote:
> I have a set of packages that use more than one "Prefix:" directive. The
> relocatability is working fine; "--relocate /old=/new" works if /old is
> one of the defined prefixes, and gives an error if it isn't.
>
> However, someone did 'rpm -qp --queryformat "%{INSTALLPREFIX}\n"' on my
> package, and pointed out that it says "(none)". I'm using 3.0.6-6x and it
> does for me, also. Is this broken?
>
No, it's legacy.
Try
rpm -qp --queryformat "[%{PREFIXES}\n]"'
to get all the prefixes that can be relocated, and
rpm -qp --queryformat "[%{INSTPREFIXES}\n]"'
to get the values substituted when the package was installed.
(Note: That's what the code sez', I haven't actually verified.)
73 de Jeff
--
Jeff Johnson ARS N3NPQ
jbj@jbj.org (jbj@redhat.com)
Chapel Hill, NC
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]