diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Iurt/DKMS.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Iurt/DKMS.pm b/lib/Iurt/DKMS.pm index f50ff9c..ca3fd78 100644 --- a/lib/Iurt/DKMS.pm +++ b/lib/Iurt/DKMS.pm @@ -262,7 +262,7 @@ sub dkms_compile { # now need to move dkms build if it wrongly assume a build for the running kernel plog("search module in /var/lib/dkms/$realname/$realversion/$kerver/"); - if (-d "$chroot_tmp/var/lib/dkms/$realname/$realversion/$kerver/") { + if ($kerver ne $modulesdir && -d "$chroot_tmp/var/lib/dkms/$realname/$realversion/$kerver/") { system("sudo mv $chroot_tmp/var/lib/dkms/$realname/$realversion/$kerver/ $chroot_tmp/var/lib/dkms/$realname/$realversion/$modulesdir/"); } $cache->{dkms}{"$realname-kernel-$modulesdir-$realversion"} = 1; |