Red Hat Bugzilla – Bug 240168
RHN repodata contains release "0" for every versioned Requires
Last modified: 2015-03-04 20:18:39 EST
Description of problem:
While studying the primary.xml of RHEL 5 RHN repositories i stumbled across a
wrong entry in the file for specific cases:
If a package had a
the entry in the primary.xml would look like this:
<rpm:entry name="foo" flags="EQ" epoch="0" ver="1.2.3" rel="0" />
<rpm:entry name="foo" flags="EQ" epoch="0" ver="1.2.3" />
FC6 and FC7 repositories don't contain the rel="0" entries for such cases. I've
verified this for a few cases, the first one i found was guile-devel requiring
Version-Release number of selected component (if applicable):
RHEL 5 Client installation.
Steps to Reproduce:
1. Install a RHEL 5
2. Run yum update to generate the local caches
3. Look for guile-devel in primary.xml and compare it to a FC6 primary.xml
4. Check the real package require of guile-devel
primary.xml contains requirements that contain additional wrong information.
primary.xml should contain the actual information as stored in the binary rpm.
This is luckly currently not an issue for RHEL 5, but in case yum ever gets
updated to 3.1.x or newer this will break as yum then uses the information from
the repodata (primary.xml) instead of binary headers as in yum-3.0.x and
earlier. Also for RHEL 6 we will be including a newer yum, so there it
definitely will break otherwise.
Suggested fix is to use a normal createrepo which doesn't show this artefact in
primary.xml (recreated the primary.xml myself and it didn't contain the rel="0"
Read ya, Phil
Created a Hosted clone of this bug -- Bugzilla Bug 249279: RHN repodata contains
release "0" for every versioned Requires
use yum update to get a copy of primary.xml in /var/cache/yum/(repo_label)/
make sure that the xml is well-formed, and that there are some rpm:entries with
no rel filled in, but versions, and that the release if present when it should be.
verified using rhn-satellite-5.1.0-8-redhat-linux-as-i386-4-embedded-oracle.iso.
RHEL5 client used is rlx-3-08
primary.xml has rpm: enteries with no rel filled in.
User email@example.com's account has been closed
verified in stage. release_pending.
5.1 Sat GA so Closed for Current Release.
Removing Bug 240168 blocks bug 444878.