Created attachment 463050 [details] foo-1.0-0.x86_64.rpm Description of problem: When queryformat has %{PREFIXES} and %{INSTPREFIXES}, multiple prefixes are not outputed. # cat foo.spec Name: foo Version: 1.0 Release: 0 License: GPL Group: Applications/Internet Source0: foo.tar.gz Prefix: /usr Prefix: /opt ... snip ... # rpm -qip /usr/src/redhat/RPMS/x86_64/foo-1.0-0.x86_64.rpm Name : foo Relocations: /usr /opt Version : 1.0 Vendor: (none) Release : 0 Build Date: Fri 26 Nov 2010 05:06:34 AM EST Install Date: (not installed) Build Host: test.redhat.com Group : Applications/Internet Source RPM: foo-1.0-0.src.rpm Size : 20 License: GPL Signature : (none) Summary : foo application Description : foo application # rpm -ihv /usr/src/redhat/RPMS/x86_64/foo-1.0-0.x86_64.rpm Preparing... ########################################### [100%] 1:foo ########################################### [100%] # rpm -q --qf="%{PREFIXES}\n" foo /usr ==> /opt is not outputed. # rpm -ev foo # rpm -ihv --relocate /usr=/test --relocate /opt=/test1 /usr/src/redhat/RPMS/x86_64/foo-1.0-0.x86_64.rpm Preparing... ########################################### [100%] 1:foo ########################################### [100%] # rpm -q --qf="%{PREFIXES}\n" foo /usr ==> /opt is not outputed. # rpm -q --qf="%{INSTPREFIXES}\n" foo /test ==> /test1 is not outputed. Version-Release number of selected component (if applicable): rpm-4.4.2.3-18.el5 How reproducible: Always Steps to Reproduce: 1. install foo package I attached 2. query with rpm -q --qf Actual results: multiple prefix are not outputed. Expected results: multiple prefix are outputed. Additional info:
Created attachment 463051 [details] foo-1.0-0.src.rpm
PREFIXES and INSTPREFIXES are arrays and need a special queryformat syntax to show all the contents: "[%{PREFIXES}\n]" and "[%{INSTPREFIXES}\n]"