Bug 435013 - up2date --list fields run together
Summary: up2date --list fields run together
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: up2date
Version: 4.6
Hardware: i386
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Sayli Karmarkar
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-02-26 20:20 UTC by Brian McAllister
Modified: 2015-03-23 01:09 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-05-18 20:14:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0972 0 normal SHIPPED_LIVE up2date bug fix update 2009-05-18 13:42:03 UTC

Description Brian McAllister 2008-02-26 20:20:08 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060414 Red Hat/1.7.13-1.1.3.1

Description of problem:
The up2date --list option produces output formatted in columns.  RPM release version fields can exceed the width specified in the print commands, causing fields to run together.  This leads to failure of scripts that try to parse the list.

The problem is in /usr/share/rhn/up2date-client/wrapperUtils.py, lines 298 and 314.  The solution is either to increase the field widths or to add a space between the field specifications.

Examples of problem RPMs:
cups-1.1.22-0.rc1.9.20.2.el4_6.5.i386
ntp-4.2.0.a.20040617-6.el4.i386.rpm


Version-Release number of selected component (if applicable):
up2date-4.6.2-7.el4_6.1

How reproducible:
Always


Steps to Reproduce:
1. Use up2date --list for any RPM whose release version exceeds 17 characters (14 characters if --show-channels is used).
2.
3.

Actual Results:
Name                                    Version        Rel
----------------------------------------------------------
cups                                    1.1.22         0.rc1.9.20.2.el4_6.5i386


Expected Results:
Name                                    Version        Rel
----------------------------------------------------------
cups                                    1.1.22         0.rc1.9.20.2.el4_6.5 i386


Additional info:

Comment 5 errata-xmlrpc 2009-05-18 20:14:01 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0972.html


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