[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: --queryformat "%{INSTALLPREFIX}\n" broken for multiple prefixes?



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] []