Bug 858844 - yumBase().update() breaks when specifying pkgname, version, and release
Summary: yumBase().update() breaks when specifying pkgname, version, and release
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: yum
Version: 6.3
Hardware: noarch
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: James Antill
QA Contact: Patrik Kis
URL:
Whiteboard:
Depends On:
Blocks: 782183
TreeView+ depends on / blocked
 
Reported: 2012-09-19 19:16 UTC by Matthew Gyurgyik
Modified: 2018-12-01 18:05 UTC (History)
5 users (show)

Fixed In Version: yum-3.2.29-31.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-21 10:12:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Various tests using yum 3.2.39 releases 17, 22, 30 (4.23 KB, text/plain)
2012-09-19 19:16 UTC, Matthew Gyurgyik
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0406 0 normal SHIPPED_LIVE yum bug fix and enhancement update 2013-02-20 20:50:44 UTC

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


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