aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-02-29 20:08:31 +0000
committerOlivier Blin <oblin@mandriva.com>2008-02-29 20:08:31 +0000
commit3ec45fd372b27b4f250c41615ef6e916e5b09b6d (patch)
tree32ac3283c05faaf39c7c2ee7477cc1491ded3516
parent670d9ee2163539cec2af7f4d1d727a60ec111d1f (diff)
downloadiurt-3ec45fd372b27b4f250c41615ef6e916e5b09b6d.tar
iurt-3ec45fd372b27b4f250c41615ef6e916e5b09b6d.tar.gz
iurt-3ec45fd372b27b4f250c41615ef6e916e5b09b6d.tar.bz2
iurt-3ec45fd372b27b4f250c41615ef6e916e5b09b6d.tar.xz
iurt-3ec45fd372b27b4f250c41615ef6e916e5b09b6d.zip
fallback on package version
-rw-r--r--lib/Iurt/DKMS.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Iurt/DKMS.pm b/lib/Iurt/DKMS.pm
index 1def71c..1e3f85b 100644
--- a/lib/Iurt/DKMS.pm
+++ b/lib/Iurt/DKMS.pm
@@ -78,6 +78,7 @@ sub search_dkms {
my ($modulesourcedir) = $files =~ m, /usr/src/([^/ ]+),;
my $script = $hdr->queryformat('%{POSTIN})');
my ($realversion) = $script =~ /\s+-v\s+(\S+)/;
+ $realversion ||= $version;
plog('NOTIFY', "dkms $name version $version source $modulesourcedir realversion $realversion");
push @{$dkms{$media}}, [ $name, $version, $modulesourcedir, $realversion, "$path/$rpm" ];
} elsif ($rpm =~ /^kernel-((?:[^-]+-)?[^-]+.*)-[^-]+-[^-]+\.[^.]+\.rpm/ && $rpm !~ /win4lin|latest|debug|stripped|BOOT|xen|doc/) {