Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 595143 - Removing with leaves should work with respect to protected packages
Summary: Removing with leaves should work with respect to protected packages
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: yum-utils
Version: 13
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-05-23 15:43 UTC by Robin Lee
Modified: 2014-01-21 23:15 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-05-23 23:56:23 UTC


Attachments (Terms of Use)
A trivial reproduced situation when installing php and removing it again (deleted)
2010-05-23 15:43 UTC, Robin Lee
no flags Details

Description Robin Lee 2010-05-23 15:43:33 UTC
Created attachment 415969 [details]
A trivial reproduced situation when installing php and removing it again

Description of problem:
When removing package with '--remove-leaves' option, yum shows no regard to the protected packages set through the 'protect-packages' plugin.

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

[cheese@cheese-laptop ~]$ rpm -qa yum*
yum-plugin-remove-with-leaves-1.1.26-1.fc13.noarch
yum-3.2.27-4.fc13.noarch
yum-utils-1.1.26-1.fc13.noarch
yum-plugin-protect-packages-1.1.26-1.fc13.noarch
yum-plugin-fastestmirror-1.1.26-1.fc13.noarch
yum-plugin-merge-conf-1.1.26-1.fc13.noarch
yum-presto-0.6.2-1.fc13.noarch
yum-metadata-parser-1.1.4-1.fc13.i686
yum-plugin-show-leaves-1.1.26-1.fc13.noarch

How reproducible:
(See the attached file install-and-remove-package.txt)
And I added 'httpd' in /etc/sysconfig/protected-packages .

Actual results:
'httpd' was still removed.

Expected results:
'httpd' will be protected from removing.

Comment 1 James Antill 2010-05-23 23:56:23 UTC
That might be fixable, but the upstream/rawhide yum moved protected-packages into core ... and it will work with other plugins then.


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