Bug 858844

Summary: yumBase().update() breaks when specifying pkgname, version, and release
Product: Red Hat Enterprise Linux 6 Reporter: Matthew Gyurgyik <matthew>
Component: yumAssignee: James Antill <james.antill>
Status: CLOSED ERRATA QA Contact: Patrik Kis <pkis>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.3CC: cstpierr, jsbillin, pkis, pvn, sol.jerome
Target Milestone: rc   
Target Release: ---   
Hardware: noarch   
OS: Linux   
Whiteboard:
Fixed In Version: yum-3.2.29-31.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-21 10:12:52 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: 782183    
Attachments:
Description Flags
Various tests using yum 3.2.39 releases 17, 22, 30 none

Description Matthew Gyurgyik 2012-09-19 19:16:00 UTC
Created attachment 614554 [details]
Various tests using yum 3.2.39 releases 17, 22, 30

Description of problem:
yumBase().update() breaks when a pkgname, version, and release are passed.

Version-Release number of selected component (if applicable):
yum 3.2.29-22.el6 and 3.2.29-30.el6


How reproducible: Always


Steps to Reproduce:
1. import yum
2. yum.YumBase().update(name="fakepackage", version="1", release="1")
  
Actual results:

>>> yum.YumBase().update(name="fakepackage", version="1", release="1")
Loaded plugins: refresh-packagekit
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 3740, in update
self.logger.warning(_("No package matched to upgrade: %s"), self._ui_nevra_dict(nevra_dict))
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 4352, in _ui_nevra_dict
evr = '%s-%s' % (e, v, r)


Expected results:

>>> yum.YumBase().update(name="fakepackage", version="1", release="1")
Loaded plugins: refresh-packagekit
[]


Additional info:
Attached you will find the output of various test case scenarios using yum 3.2.29 release 17, 22, and 30

Comment 2 James Antill 2012-09-20 14:12:57 UTC
Upstream commit: 7498c0878a3f804c55236a1c2af8463dee4ead4a

Comment 8 errata-xmlrpc 2013-02-21 10:12:52 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-0406.html