Bug 881735

Summary: when I trigger dep issue, yum prints warning as python object and not plain text: "(1, [u'Please report this error in https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%205&component=yum'])"
Product: Red Hat Enterprise Linux 5 Reporter: Jan Hutař <jhutar>
Component: yumAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED WONTFIX QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.9CC: james.antill, jzeleny, lmiksik, tcallawa, varghese.ag, zpavlas
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-12-10 20:46:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1049888    

Description Jan Hutař 2012-11-29 13:35:05 UTC
Description of problem:
When I trigger dependency issue, yum prints warning as python object and not plain as a text: "(1, [u'Please report this error in https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%205&component=yum'])"


Version-Release number of selected component (if applicable):
yum-3.2.22-39.el5


How reproducible:
always


Steps to Reproduce:
1. I had old package installed with other packages depending on it (on exact
   its exact version) and had an update for the package
2. When I run `yum upgrade`, yum fails (which is expected and not
   a reason for this bug)


Actual results:
[...]
cobbler is needed by (installed) satellite-branding-5.5.0.4-1.el5sat.noarch
Complete!
(1, [u'Please report this error in https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%205&component=yum'])

(note that on the last row yum outputs some list, but it should be plain string)


Expected results:
[...]
cobbler is needed by (installed) satellite-branding-5.5.0.4-1.el5sat.noarch
Complete!
Please report this error in https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%205&component=yum'

Comment 1 Zdeněk Pavlas 2013-03-18 15:04:06 UTC
A 5-line patch..

--- yum-3.2.22/yummain.py.old	2013-03-18 16:00:41.494490480 +0100
+++ yum-3.2.22/yummain.py	2013-03-18 16:02:14.063221512 +0100
@@ -268,7 +268,13 @@ def main(args):
     except IOError, e:
         return exIOError(e)
 
-    verbose_logger.log(logginglevels.INFO_2, _('Complete!'))
+    if type(return_code) is tuple:
+        return_code, msgs = return_code
+        for msg in msgs:
+            logger.critical("%s", msg)
+    else:
+        verbose_logger.log(logginglevels.INFO_2, _('Complete!'))
+
     if unlock(): return 200
     return return_code

Comment 2 Jan Zeleny 2013-03-20 16:38:11 UTC
*** Bug 893681 has been marked as a duplicate of this bug. ***

Comment 3 RHEL Program Management 2013-05-01 07:18:46 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 4 James Antill 2013-12-10 20:46:31 UTC
 Given that this is a minor cosmetic issue I'm going to close this now, as we are very late in RHEL-5. At least the early versions of RHEL-6 yum could be rebuilt on RHEL-5, so if any customer really needs this then that is a viable path.