Hide Forgot
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:
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.
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