Bug 362301 - rhn-delete-package should be able to delete SRPMS without matching RPMS
Summary: rhn-delete-package should be able to delete SRPMS without matching RPMS
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Network
Classification: Retired
Component: RHN/Backend
Version: RHN Devel
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Bryan Kearney
QA Contact: Amy Owens
URL:
Whiteboard:
: 362681 (view as bug list)
Depends On:
Blocks: 425231 427574
TreeView+ depends on / blocked
 
Reported: 2007-11-01 18:24 UTC by James Bowes
Modified: 2013-01-10 09:56 UTC (History)
3 users (show)

Fixed In Version: 5.0.4.2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-01-29 21:28:53 UTC
Embargoed:


Attachments (Terms of Use)

Description James Bowes 2007-11-01 18:24:46 UTC
The existing implementation of rhn-delete-package takes as an argument a binary
rpm name, and an optional flag saying if you should delete the source rpm for
that rpm. This means that you can't delete a SRPM if you deleted the RPM first.

Comment 1 James Bowes 2007-11-02 13:54:54 UTC
*** Bug 362681 has been marked as a duplicate of this bug. ***

Comment 2 James Bowes 2007-12-18 16:27:34 UTC
Test plan:
Use the webui to find a package that has an associated source rpm.
use rhn-delete-package-internal to delete the rpm:
rhn-delete-package --orgid="" --package=foo-1.2.3.noarch
now delete the source rpm (no longer has a matching rpm):
rhn-delete-package --orgid="" --package=foo-1.2.3.src.rpm --sources --commit

verify that the entry is removed from the database using a sql client:

select org_id from rhnPackageSource ps, rhnSourceRpm sr
where ps.source_rpm_id = sr.id
and sr.name='foo-1.2.3.src.rpm

The result should be a non NULL value (the recycled org id)


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