diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-04-02 12:08:24 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-04-02 12:08:24 +0000 |
commit | 18804f050c4991b416b564f7689eb2f78197553f (patch) | |
tree | 97d62586cd8d5be74750f98bb6d86ac34779dbcb /lib | |
parent | 3e2295eef53a8110f4464f23a610f15889f0c3a1 (diff) | |
download | iurt-18804f050c4991b416b564f7689eb2f78197553f.tar iurt-18804f050c4991b416b564f7689eb2f78197553f.tar.gz iurt-18804f050c4991b416b564f7689eb2f78197553f.tar.bz2 iurt-18804f050c4991b416b564f7689eb2f78197553f.tar.xz iurt-18804f050c4991b416b564f7689eb2f78197553f.zip |
skip kernel packages with no modules dir (like the "kernel" meta-package)
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"); |