Bug 781510 - 'subscription-manager clean' should delete redhat.repo
Summary: 'subscription-manager clean' should delete redhat.repo
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.3
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Bryan Kearney
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: 738066
TreeView+ depends on / blocked
 
Reported: 2012-01-13 16:06 UTC by Alex Wood
Modified: 2012-06-20 13:05 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-20 13:05:16 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0804 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2012-06-19 19:51:31 UTC

Description Alex Wood 2012-01-13 16:06:59 UTC
Description of problem:
Running a 'subscription manager clean' does not delete /etc/yum.repos.d/redhat.repo.

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

How reproducible: Always

Steps to Reproduce:
1. Make sure that there is no /etc/yum.repos.d/redhat.repo file.
2. Run a 'subscription-manager repos --list'.  In the current version this command will create a redhat.repo file if one does not already exist.
3. Run a 'subscription-manager clean'.
  
Actual results: The redhat.repo file remains in /etc/yum.repos.d/

Expected results: The file should be removed.

Comment 2 Alex Wood 2012-01-17 21:59:10 UTC
Committed df7dd754c1f012afbaef58ffab47e34c588425d4

subscription-manager 0.99.4+

Comment 3 Shwetha Kallesh 2012-02-23 11:16:10 UTC
Moving the bug to verified.


RPM used:

[root@dhcp201-166 yum.repos.d]# rpm -qa | grep subscription-manager
subscription-manager-gnome-0.99.8-1.el6.x86_64
subscription-manager-0.99.8-1.el6.x86_64
subscription-manager-migration-0.99.8-1.el6.x86_64
subscription-manager-migration-data-1.12-1.el6.noarch
subscription-manager-debuginfo-0.99.8-1.el6.x86_64


[root@dhcp201-166 yum.repos.d]# ll
total 4
-rw-r--r--. 1 root root 189 Feb 23 11:13 redhat.repo
[root@dhcp201-166 yum.repos.d]# subscription-manager clean
All local data removed
[root@dhcp201-166 yum.repos.d]# ll
total 0

Comment 5 errata-xmlrpc 2012-06-20 13:05:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0804.html


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