summaryrefslogtreecommitdiffstats
path: root/perl-install/pkgs.pm
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2010-05-26 09:23:39 +0000
committerPascal Terjan <pterjan@mandriva.org>2010-05-26 09:23:39 +0000
commitd4164c62fbf9838e11b396d0b2778dfb4a7e5a08 (patch)
treeb4be507c74c1e13234ae5cc2a83662c3e580bc9c /perl-install/pkgs.pm
parenta472070a5d1568f2a126535b3aebbeaf0d9784a2 (diff)
downloaddrakx-d4164c62fbf9838e11b396d0b2778dfb4a7e5a08.tar
drakx-d4164c62fbf9838e11b396d0b2778dfb4a7e5a08.tar.gz
drakx-d4164c62fbf9838e11b396d0b2778dfb4a7e5a08.tar.bz2
drakx-d4164c62fbf9838e11b396d0b2778dfb4a7e5a08.tar.xz
drakx-d4164c62fbf9838e11b396d0b2778dfb4a7e5a08.zip
do not remove important networking packages even if they seem unused (#49668)
Diffstat (limited to 'perl-install/pkgs.pm')
-rw-r--r--perl-install/pkgs.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm
index 88532592d..2866892ed 100644
--- a/perl-install/pkgs.pm
+++ b/perl-install/pkgs.pm
@@ -256,6 +256,10 @@ sub remove_unused_packages {
my @unselected_locales = detect_unselected_locale_packages($do_pkgs);
undef $wait;
+ # Packages to not remove even if they seem unused
+ my @wanted_hardware_packages = qw(gnome-bluetooth gnome-phone-manager kbluetooth kppp ppp wireless-tools wpa_supplicant);
+ @unused_hardware_packages = difference2(\@unused_hardware_packages, \@wanted_hardware_packages);
+
@unused_hardware_packages || @unselected_locales or return;
my $hardware = @unused_hardware_packages;