Bug 476727 - rpm query with perms/octal typetag do not work
Summary: rpm query with perms/octal typetag do not work
Keywords:
Status: CLOSED DUPLICATE of bug 471820
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 10
Hardware: i686
OS: Linux
low
medium
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-16 19:28 UTC by gerbier
Modified: 2008-12-17 06:40 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-12-17 06:40:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.