diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-01-12 18:48:52 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-01-12 18:48:52 +0000 |
commit | fa6567096973f870f380da7fa44631565d2e5102 (patch) | |
tree | 491729bbb42576923842b1d6a5bd08d0dd2307db /perl-install/standalone | |
parent | dd41336f06e901b3f3a6ff81793657ccf6b7cc2b (diff) | |
download | drakx-fa6567096973f870f380da7fa44631565d2e5102.tar drakx-fa6567096973f870f380da7fa44631565d2e5102.tar.gz drakx-fa6567096973f870f380da7fa44631565d2e5102.tar.bz2 drakx-fa6567096973f870f380da7fa44631565d2e5102.tar.xz drakx-fa6567096973f870f380da7fa44631565d2e5102.zip |
handle both kernel 2.4.x and 2.6.x (before size field was not properly
when switching between threes b/c we looked for module.ko instead of
module.o.gz and the like)
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-x | perl-install/standalone/drakfloppy | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/standalone/drakfloppy b/perl-install/standalone/drakfloppy index e4daae23b..0df6d7117 100755 --- a/perl-install/standalone/drakfloppy +++ b/perl-install/standalone/drakfloppy @@ -180,7 +180,8 @@ sub pref_dialog() { fill_tree($kernel_combo->entry->get_text); foreach my $module (@modules) { my $full_path = join('/', "/lib/modules", $kernel_combo->entry->get_text, $module); - my $size = get_file_size($full_path); + $full_path =~ s/\.(ko|o)(|.gz)//; + my $size = get_file_size(glob_("$full_path.*")); $list_model->append_set(map_index { $::i => $_ } $module, $size, $full_path); } |