diff options
Diffstat (limited to 'lib/Iurt/DKMS.pm')
-rw-r--r-- | lib/Iurt/DKMS.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Iurt/DKMS.pm b/lib/Iurt/DKMS.pm index 8c35174..dd5a017 100644 --- a/lib/Iurt/DKMS.pm +++ b/lib/Iurt/DKMS.pm @@ -91,14 +91,14 @@ sub search_dkms { my $package_ok = $run->{dkms}{kversion} ? $version =~ /$run->{dkms}{kversion}/ : 1; $package_ok or next; my $hdr = RPM4::Header->new("$path/$rpm"); - my $files = $hdr->queryformat('[%{FILENAMES} ])'); + my $files = $hdr->queryformat('[%{FILENAMES}\n]'); if ($version =~ /(.*)source-(.*)/ || $version =~ /(.*)devel-(.*)/) { my $source = "$1$2"; - my ($sourcedir) = $files =~ m, /usr/src/([^/ ]+),; + my ($sourcedir) = $files =~ m,^/usr/src/([^/ ]+)$,m; plog('NOTIFY', "kernel source $version ($source sourcedir $sourcedir)"); $kernel_source{$source} = [ $version, $sourcedir ]; } else { - my ($modulesdir) = $files =~ m, /lib/modules/([^/ ]+),; + my ($modulesdir) = $files =~ m,^/lib/modules/([^/ ]+)$,m; if ($modulesdir) { plog('NOTIFY', "kernel $version (modules dir $modulesdir)"); push @kernel, [ $version, $modulesdir ]; |