Bug 476727

Summary: rpm query with perms/octal typetag do not work
Product: [Fedora] Fedora Reporter: gerbier <eric.gerbier>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 10CC: ffesti, jnovy, pmatilai
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-12-17 06:40:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description gerbier 2008-12-16 19:28:02 UTC
Description of problem:
if using :octal or :perms in an rpm query format, the result is "(not a number)"
the query works without this typetag

it is needed for rpmrebuild software

Version-Release number of selected component (if applicable):
rpm-4.6.0-0.rc1.8.i386

How reproducible:
rpm -q --queryformat '[%{FILEMODES:octal} %{FILEMODES:perms} %{FILEMODES} ]' rpm


Steps to Reproduce:
1. just with the rpm query
2.
3.
  
Actual results:
(not a number) (not a number) 33261 /bin/rpm  
(not a number) (not a number) 33261 /etc/cron.daily/rpm  
(not a number) (not a number) 33188 /etc/logrotate.d/rpm  
(not a number) (not a number) 16877 /etc/rpm  
...

Expected results:
755 -rwxr-xr-x 33261 /bin/rpm 
...

Additional info:

Comment 1 Panu Matilainen 2008-12-17 06:40:17 UTC

*** This bug has been marked as a duplicate of bug 471820 ***