summaryrefslogtreecommitdiffstats
path: root/move/move.pm
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-10-15 14:33:40 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-10-15 14:33:40 +0000
commit4eb12bd3c2b072e0a8b1b22422104b8d71f245d1 (patch)
treeb7166f7ae34ab30580c417095318181c445cc6ba /move/move.pm
parent4bb042efd8ca9b9cf5f40e66187d9708877a79a5 (diff)
downloaddrakx-backup-do-not-use-4eb12bd3c2b072e0a8b1b22422104b8d71f245d1.tar
drakx-backup-do-not-use-4eb12bd3c2b072e0a8b1b22422104b8d71f245d1.tar.gz
drakx-backup-do-not-use-4eb12bd3c2b072e0a8b1b22422104b8d71f245d1.tar.bz2
drakx-backup-do-not-use-4eb12bd3c2b072e0a8b1b22422104b8d71f245d1.tar.xz
drakx-backup-do-not-use-4eb12bd3c2b072e0a8b1b22422104b8d71f245d1.zip
have necessary png lang files installed and limit percent-langs of langs.pm accordingly
Diffstat (limited to 'move/move.pm')
-rw-r--r--move/move.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/move/move.pm b/move/move.pm
index b29a63ec3..d10e46822 100644
--- a/move/move.pm
+++ b/move/move.pm
@@ -8,7 +8,9 @@ use common;
use fs;
use run_program;
use log;
+use lang;
+my @ALLOWED_LANGS = qw(en_US fr es it de);
#- run very soon at stage2 start, setup things on tmpfs rw / that
#- were not necessary to start stage2 itself (there were setup
@@ -41,6 +43,8 @@ sub init {
run_program::run('/sbin/devfsd', '/dev');
modules::load_category('multimedia/sound');
+
+ member($_, @ALLOWED_LANGS) or delete $lang::langs{$_} foreach keys %lang::langs;
}