summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-09-21 11:57:06 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-09-21 11:57:06 +0000
commit983e09b249a11f872fa9b48e3faaf80048159502 (patch)
treef672e1d6510e107dd096a97f3a7f9a71e129e331 /perl-install
parent10d1af225bdcb1ad73da20635c355616d9c78b3c (diff)
downloaddrakx-983e09b249a11f872fa9b48e3faaf80048159502.tar
drakx-983e09b249a11f872fa9b48e3faaf80048159502.tar.gz
drakx-983e09b249a11f872fa9b48e3faaf80048159502.tar.bz2
drakx-983e09b249a11f872fa9b48e3faaf80048159502.tar.xz
drakx-983e09b249a11f872fa9b48e3faaf80048159502.zip
allowing consolefonts to be ungzip'ed (adapting to new console-tools) (thanks to Mark Draheim)
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/lang.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm
index e4e899c91..a05706914 100644
--- a/perl-install/lang.pm
+++ b/perl-install/lang.pm
@@ -901,7 +901,9 @@ sub write {
my $p = "$prefix/usr/lib/kbd";
if ($name) {
eval {
- cp_af("$p/consolefonts/$name.psf.gz", "$prefix/etc/sysconfig/console/consolefonts");
+ my $font = "$p/consolefonts/$name.psf";
+ $font .= ".gz" if ! -e $font;
+ cp_af($font, "$prefix/etc/sysconfig/console/consolefonts");
add2hash $h, { SYSFONT => $name };
};
$@ and log::l("missing console font $name");