From fa6567096973f870f380da7fa44631565d2e5102 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 12 Jan 2004 18:48:52 +0000 Subject: 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) --- perl-install/standalone/drakfloppy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- cgit v1.2.1