diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Iurt/DKMS.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Iurt/DKMS.pm b/lib/Iurt/DKMS.pm index 5006d9b..27117f6 100644 --- a/lib/Iurt/DKMS.pm +++ b/lib/Iurt/DKMS.pm @@ -98,8 +98,12 @@ sub search_dkms { $kernel_source{$source} = [ $version, $sourcedir ]; } else { my ($modulesdir) = $files =~ m, /lib/modules/([^/ ]+),; - plog('NOTIFY', "kernel $version (modules dir $modulesdir)"); - push @kernel, [ $version, $modulesdir ]; + if ($modulesdir) { + plog('NOTIFY', "kernel $version (modules dir $modulesdir)"); + push @kernel, [ $version, $modulesdir ]; + } else { + plog('NOTIFY', "skipping kernel $version (no modules dir)"); + } } } elsif ($rpm =~ /^(.*)-kernel-([^-]+-[^-]+.*)-([^-]+-[^-]+)\.[^.]+\.rpm$/) { plog('NOTIFY', "modules $1 version $3 for kernel $2"); |