Bug 783451 - rpm-python adds extra \n to group tag
Summary: rpm-python adds extra \n to group tag
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: rpm
Version: 5.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Panu Matilainen
QA Contact: Patrik Kis
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-20 13:33 UTC by Michael Mráka
Modified: 2013-01-08 07:30 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-08 07:30:07 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0061 0 normal SHIPPED_LIVE rpm bug fix update 2013-01-07 15:27:41 UTC

Description Michael Mráka 2012-01-20 13:33:46 UTC
Description of problem:
rpm-python adds extra \n to group tag


Version-Release number of selected component (if applicable):
rpm-python-4.4.2.3-27.el5


How reproducible:
always

Steps to Reproduce:
1. rpm -q --qf "'%{group}'\n" -p  strace-4.5.18-5.el5_5.5.x86_64.rpm
2. cat >/tmp/p.py <<EOF
import rpm
import os

ts=rpm.ts()
ts.setVSFlags(-1)
fd = os.open('strace-4.5.18-5.el5_5.5.x86_64.rpm', os.O_RDONLY)
hdr = ts.hdrFromFdno(fd)
print "GROUP = '%s'" % hdr['group']
EOF

3. python /tmp/p.py
  
Actual results:
'Development/Debuggers'
GROUP = 'Development/Debuggers
'

Expected results:
'Development/Debuggers'
GROUP = 'Development/Debuggers'

Additional info:

Comment 2 RHEL Program Management 2012-04-02 10:51:28 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 9 errata-xmlrpc 2013-01-08 07:30:07 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-0061.html


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