summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-05-05 12:11:11 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-05-05 12:11:11 +0000
commit7b7fcfdf7fcb4f7fa9b3a52e2bf81ae93739e512 (patch)
tree4641c9b55a843d9f27ae6152789be326de323c3d /perl-install/install_steps.pm
parent9d42e52fa720c98850b2c6c58db7b3fe1b17e6dc (diff)
downloaddrakx-backup-do-not-use-7b7fcfdf7fcb4f7fa9b3a52e2bf81ae93739e512.tar
drakx-backup-do-not-use-7b7fcfdf7fcb4f7fa9b3a52e2bf81ae93739e512.tar.gz
drakx-backup-do-not-use-7b7fcfdf7fcb4f7fa9b3a52e2bf81ae93739e512.tar.bz2
drakx-backup-do-not-use-7b7fcfdf7fcb4f7fa9b3a52e2bf81ae93739e512.tar.xz
drakx-backup-do-not-use-7b7fcfdf7fcb4f7fa9b3a52e2bf81ae93739e512.zip
no_comment
Diffstat (limited to 'perl-install/install_steps.pm')
-rw-r--r--perl-install/install_steps.pm10
1 files changed, 8 insertions, 2 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm
index 21af38d7e..1d31dbefe 100644
--- a/perl-install/install_steps.pm
+++ b/perl-install/install_steps.pm
@@ -228,7 +228,7 @@ sub choosePackages {
#- not be able to start (xfs at least).
my $available = install_any::getAvailableSpace($o);
my $availableCorrected = pkgs::invCorrectSize($available / sqr(1024)) * sqr(1024);
- $available < $availableCorrected or $available = $availableCorrected;
+ log::l("available size $available (corrected $availableCorrected)");
foreach (values %{$packages->[0]}) {
pkgs::packageSetFlagSkip($_, 0);
@@ -394,10 +394,16 @@ Consoles 1,3,4,7 may also contain interesting information";
$D .= "/fonts";
-d "$o->{prefix}$D" or next;
log::l("found win font dir $D");
- $hasttf ||= mkdir "$o->{prefix}$dest", 0755;
+ if (!$hasttf) {
+ $hasttf = $o->ask_okcancel('',
+_("Some true type fonts from windows have been found on your computer.
+Do you want to use them? Be sure you have the right to use them under Linux.")) or goto nottf;
+ mkdir "$o->{prefix}$dest", 0755;
+ }
/(.*)\.ttf/i and symlink "$D/$_", "$o->{prefix}$dest/$1.ttf" foreach grep { /\.ttf/i } all("$o->{prefix}$D");
}
}
+ nottf:
if ($hasttf) {
run_program::rooted($o->{prefix}, "ttmkfdir", "-d", $dest, "-o", "$dest/fonts.dir");
run_program::rooted($o->{prefix}, "chkfontpath", "--add", $dest);