Bug 783451

Summary: rpm-python adds extra \n to group tag
Product: Red Hat Enterprise Linux 5 Reporter: Michael Mráka <mmraka>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED ERRATA QA Contact: Patrik Kis <pkis>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.7CC: ffesti, lmiksik, mvadkert, pkis
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-08 07:30:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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