From 87d49cc1dd8b884a530563bcb37ac1cba367258d Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 16 Aug 2001 18:12:46 +0000 Subject: add remove_unused to have more place for mo files --- perl-install/install2.pm | 1 + perl-install/install_any.pm | 11 ++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/perl-install/install2.pm b/perl-install/install2.pm index 190b529ab..b8ddbb3d3 100644 --- a/perl-install/install2.pm +++ b/perl-install/install2.pm @@ -537,6 +537,7 @@ sub main { add2hash($o->{netc}, network::read_resolv_conf($file)); } } + install_any::remove_unused(); #-the main cycle my $clicked = 0; diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index 2e923ec52..74d629553 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -1023,16 +1023,21 @@ sub check_prog { chmod 0755, $f_; } -sub remove_bigseldom_used { - log::l("remove_bigseldom_used"); +sub remove_unused { $::testing and return; - unlink glob_("/usr/share/gtk/themes/$_*") foreach qw(DarkMarble marble3d); if ($::o->isa('interactive_gtk')) { unlink glob_("/lib/lib$_*") foreach qw(slang newt); unlink "/usr/bin/perl-install/auto/Newt/Newt.so"; } else { unlink glob_("/usr/X11R6/bin/XF*"); } +} + +sub remove_bigseldom_used { + log::l("remove_bigseldom_used"); + $::testing and return; + remove_unused(); + unlink glob_("/usr/share/gtk/themes/$_*") foreach qw(DarkMarble marble3d); unlink(m|^/| ? $_ : "/usr/bin/$_") foreach ((map { @$_ } @bigseldom_used_groups), qw(mkreiserfs resize_reiserfs), -- cgit v1.2.1