summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-01-22 11:46:01 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-01-22 11:46:01 +0000
commit6c1b412b6039a3c4f28def612a685e1e7a1d931b (patch)
treee353f17a5d7d158f6167fdb04806aac231a7ec19
parent2f17b0a483b22e9011009d662f0509e4c8e8a7da (diff)
downloadurpmi-6c1b412b6039a3c4f28def612a685e1e7a1d931b.tar
urpmi-6c1b412b6039a3c4f28def612a685e1e7a1d931b.tar.gz
urpmi-6c1b412b6039a3c4f28def612a685e1e7a1d931b.tar.bz2
urpmi-6c1b412b6039a3c4f28def612a685e1e7a1d931b.tar.xz
urpmi-6c1b412b6039a3c4f28def612a685e1e7a1d931b.zip
- urpme, urpmi:
o add basesystem-minimal to prohibit-remove
-rw-r--r--NEWS3
-rw-r--r--urpm/select.pm3
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index a3f47ae4..26799d6c 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- urpme, urpmi:
+ o add basesystem-minimal to prohibit-remove
+
Version 5.2 - 18 January 2008, by Pascal "Pixel" Rigaux
- urpmi:
diff --git a/urpm/select.pm b/urpm/select.pm
index a0201426..0dd8106a 100644
--- a/urpm/select.pm
+++ b/urpm/select.pm
@@ -453,7 +453,8 @@ sub find_removed_from_basesystem {
my ($urpm, $db, $state, $callback_base) = @_;
if ($callback_base && %{$state->{rejected} || {}}) {
my %basepackages;
- my @dont_remove = ('basesystem', split /,\s*/, $urpm->{global_config}{'prohibit-remove'});
+ my @dont_remove = ('basesystem', 'basesystem-minimal',
+ split /,\s*/, $urpm->{global_config}{'prohibit-remove'});
#- check if a package to be removed is a part of basesystem requires.
$db->traverse_tag('whatprovides', \@dont_remove, sub {
my ($p) = @_;