Bug 1292288 - Spacewalk 2.4 breaks epochless updates in CentOS 5 from installing
Summary: Spacewalk 2.4 breaks epochless updates in CentOS 5 from installing
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Clients
Version: 2.4
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
Assignee: Jiří Dostál
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
: 1248713 1302198 (view as bug list)
Depends On:
Blocks: space27
TreeView+ depends on / blocked
 
Reported: 2015-12-16 22:24 UTC by Kevin Stange
Modified: 2017-09-28 18:09 UTC (History)
6 users (show)

Fixed In Version: yum-rhn-plugin-2.5.4-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-16 08:06:06 UTC
Embargoed:


Attachments (Terms of Use)

Description Kevin Stange 2015-12-16 22:24:20 UTC
Description of problem:

Since upgrading to Spacewalk 2.4, I can no longer install updates to packages with no defined epoch in CentOS 5.  This appears to be due to the fix for bug 1172288 in commit 83330778.  When I revert this change in packages.py, package updates work again for CentOS 5.

pkg.returnEVR().compare(evr) appears to return > 0 when comparing an epoch of 0 (installed package) with None (target package).

Version-Release number of selected component (if applicable):

yum-rhn-plugin-2.4.6-1.el5

How reproducible:

100%

Steps to Reproduce:
1. Attempt to schedule an update to a package with no epoch on a CentOS 5 system
2. Run rhn_check

Actual results:

The task completes, but no work is done, because "More recent version of package <name> is already installed."

Expected results:

The package should be updated.

Comment 1 Jiří Dostál 2016-02-19 11:36:44 UTC
*** Bug 1302198 has been marked as a duplicate of this bug. ***

Comment 2 Jiří Dostál 2016-02-19 11:41:07 UTC
spacewalk.git 2dfce30827cc3bde997249dfa318f8d1d0e8f83b

Comment 3 Tomáš Kašpárek 2016-06-16 08:06:06 UTC
Spacewalk 2.5 was released.

Comment 4 Jiří Dostál 2016-11-10 17:51:52 UTC
*** Bug 1248713 has been marked as a duplicate of this bug. ***

Comment 5 Eric Herget 2017-09-28 18:09:00 UTC
This BZ closed some time during 2.5, 2.6 or 2.7.  Adding to 2.7 tracking bug.


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