summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-08-16 18:12:46 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-08-16 18:12:46 +0000
commit87d49cc1dd8b884a530563bcb37ac1cba367258d (patch)
tree5b37160f8e9b4781f4ea1e39bb4ebf98b56bcb82 /perl-install/install_any.pm
parent43835cb649bf2db0130194ebcda75f8aacc9105c (diff)
downloaddrakx-87d49cc1dd8b884a530563bcb37ac1cba367258d.tar
drakx-87d49cc1dd8b884a530563bcb37ac1cba367258d.tar.gz
drakx-87d49cc1dd8b884a530563bcb37ac1cba367258d.tar.bz2
drakx-87d49cc1dd8b884a530563bcb37ac1cba367258d.tar.xz
drakx-87d49cc1dd8b884a530563bcb37ac1cba367258d.zip
add remove_unused to have more place for mo files
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm11
1 files changed, 8 insertions, 3 deletions
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),