Bug 1028491

Summary: RPM requirements with a version but no release show the release as "0"
Product: [Retired] Pulp Reporter: Michael Hrivnak <mhrivnak>
Component: rpm-supportAssignee: pulp-bugs
Status: CLOSED UPSTREAM QA Contact: pulp-qe-list
Severity: unspecified Docs Contact:
Priority: low    
Version: MasterCC: cduryee, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-28 21:59:56 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:

Description Michael Hrivnak 2013-11-08 15:15:04 UTC
Description of problem:


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

How reproducible:
always

Steps to Reproduce:
1. add an RPM (I'm using python-pulp-agent-lib-2.2.0-1) to a repo that has a requirement for a specific version of another package, but does not specify a release.
2. view rpm with: pulp-admin rpm repo content rpm 

Actual results:
Requires:     python(abi) = 2.6-0, python-pulp-common = 2.2.0-0


Expected results:
Requires:     python(abi) = 2.6-0, python-pulp-common = 2.2.0


For this particular package, the requirement can be seen here:

$ rpm -qp --requires python-pulp-agent-lib-2.2.0-1.el6.noarch.rpm
python(abi) = 2.6
python-pulp-common = 2.2.0
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1

Comment 1 Chris Duryee 2014-11-12 02:57:35 UTC
This is still the case in pulp 2.4.3

$ pulp-admin rpm repo uploads rpm --repo-id test -f python-pulp-agent-lib-2.2.1-1.el6.noarch.rpm

<successful upload>

$ pulp-admin rpm repo content rpm --repo-id test
Arch:         noarch
Buildhost:    rhel6-builder
Checksum:     8a2039ab82be77885a7bc171c8bea429c4cddcc0ad344a5f4eec019b35fd1876
Checksumtype: sha256
Description:  A framework for loading agent handlers that provide support for
              content, bind and system specific operations.
Epoch:        0
Filename:     python-pulp-agent-lib-2.2.1-1.el6.noarch.rpm
License:      GPLv2
Name:         python-pulp-agent-lib
Provides:     python-pulp-agent-lib = 2.2.1-1.el6-0
Release:      1.el6
Requires:     python(abi) = 2.6-0, python-pulp-common = 2.2.1-0
Vendor:       None
Version:      2.2.1

Comment 2 Brian Bouterse 2015-02-28 21:59:56 UTC
Moved to https://pulp.plan.io/issues/384