diff options
-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 27117f6..521d61c 100644 --- a/lib/Iurt/DKMS.pm +++ b/lib/Iurt/DKMS.pm @@ -273,7 +273,7 @@ sub dkms_compile { !sudo($run, $config, '--rm', "$chroot_tmp/home/$luser/rpm/RPMS/*/*.rpm") || !sudo($run, $config, '--rm', "$chroot_tmp/usr/src/rpm/RPMS/*/*.rpm") and $run->{LOG}->("ERROR: could not delete dkms packages from $chroot_tmp/usr/src/rpm/RPMS/*/*.rpm or $chroot_tmp/home/$luser/rpm/RPMS/*/*.rpm ($!)\n"); if ($kerver ne $modulesdir) { - system("sudo rm -f $kerver $chroot_tmp/lib/modules/$modulesdir"); + system("sudo rm -f $chroot_tmp/lib/modules/$kerver"); if (-e "$chroot_tmp/lib/modules/$kerver.tmp") { system("sudo mv $chroot_tmp/lib/modules/$kerver.tmp $chroot_tmp/lib/modules/$kerver"); } |