diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-06-06 15:36:08 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-06-06 15:36:08 +0000 |
commit | cb92a44705d3c985c8c9530a3183edae4892ac05 (patch) | |
tree | cc1da70b6da4725b5aa748f4b8c0b9f27f099925 /perl-install/standalone/drakfont | |
parent | f9c5392f0e8897a3a5023d46c57f855aece82ad9 (diff) | |
download | drakx-cb92a44705d3c985c8c9530a3183edae4892ac05.tar drakx-cb92a44705d3c985c8c9530a3183edae4892ac05.tar.gz drakx-cb92a44705d3c985c8c9530a3183edae4892ac05.tar.bz2 drakx-cb92a44705d3c985c8c9530a3183edae4892ac05.tar.xz drakx-cb92a44705d3c985c8c9530a3183edae4892ac05.zip |
(search_windows_font) fix crash (#28016)
Diffstat (limited to 'perl-install/standalone/drakfont')
-rwxr-xr-x | perl-install/standalone/drakfont | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/standalone/drakfont b/perl-install/standalone/drakfont index 3a8e1594e..33d200fb4 100755 --- a/perl-install/standalone/drakfont +++ b/perl-install/standalone/drakfont @@ -217,9 +217,10 @@ sub search_windows_font() { } } !$replace && any { /$i/ } @installed_fonts and next; + my $subdir = $_->[1]; any { /$i$/ } @font_list or push @font_list, - find { -e $_ } map { ("$win_dir/$_->[1]/fonts/$_", - "$win_dir/$_->[1]/Fonts/$_") } $i; + grep { -e $_ } map { ("$win_dir/w$subdir/fonts/$_", + "$win_dir/$subdir/Fonts/$_") } $i; } } $interactive && $nb_dir and progress($pbar, 1, N("done")); |