Red Hat Bugzilla – Bug 251457
incorrect obsoletes detection
Last modified: 2012-06-20 11:53:56 EDT
Description of problem:
up2date can't install rpm package set wich rpm can install correctly because it
have error in obsoletes detection.
Version-Release number of selected component (if applicable):
on RedHat EL3: up2date-4.4.69-20
on RedHat EL4: up2date-4.4.69-25
Try to install SWsoft Plesk software with hotfixes in one up2date call.
Steps to Reproduce:
1. configure up2date for access to RHN.
2. add sources for SWsoft Plesk 8.2 packages to /etc/sysconfig/rhn/sources:
3. Try to install psa with psa-updates packages:
up2date-nox --dry-run --nosig psa psa-updates
There was a package dependency problem.
Install psa and psa-updates with all dependencies.
psa-updates requires psa-hotfix3-8.2.0 package.
psa-8.2.0 is obsoletes 'psa-hotfix3 < 8.2.0'
psa-8.2.0 really is not obsoletes psa-hotfix3-8.2.0 but in up2date debug log I
[Wed Aug 8 16:50:36 2007] up2date Package ['psa-hotfix3', '8.2.0',
'rhel3.build82070807.17', '', 'i586', '1000', 'product-distr-rpms',
.0-rhel3.build82070807.17.i586.rpm'] is obsoleted by ['psa', '8.2.0',
'rhel3.build82070706.15', '', 'i586', 'psa-hotfix3', '8.2.0', 2]
I found this is because error in up2dateUtils.py:parseObsoleteVersion():
- release = "0"
+ release = ""
Because this error up2dateUtils.py:isObsoleted() returns incorrect result.
>>> import rpm
>>> rpm.labelCompare(('0', '8.2.0', 'rhel3.build82070706.15'), ('0', '8.2.0', '') )
>>> rpm.labelCompare(('0', '8.2.0', 'rhel3.build82070706.15'), ('0', '8.2.0', '0') )
Thank you for submitting this issue for consideration in Red Hat Enterprise Linux. The release for which you requested us to review is now End of Life.
Please See https://access.redhat.com/support/policy/updates/errata/
If you would like Red Hat to re-consider your feature request for an active release, please re-open the request via appropriate support channels and provide additional supporting details about the importance of this issue.