aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-04-02 15:41:21 +0000
committerOlivier Blin <oblin@mandriva.com>2008-04-02 15:41:21 +0000
commitfd6c8df9f447ebfdccef17d879625648dafbc155 (patch)
tree0f4db09b94c1e9af59ff3b827f4b4ece7a3f212f /lib
parent4f9438d15e06adde52528a0c630f45c65c4d814c (diff)
downloadiurt-fd6c8df9f447ebfdccef17d879625648dafbc155.tar
iurt-fd6c8df9f447ebfdccef17d879625648dafbc155.tar.gz
iurt-fd6c8df9f447ebfdccef17d879625648dafbc155.tar.bz2
iurt-fd6c8df9f447ebfdccef17d879625648dafbc155.tar.xz
iurt-fd6c8df9f447ebfdccef17d879625648dafbc155.zip
do not try to move modules built for current kernel if it was the target
Diffstat (limited to 'lib')
-rw-r--r--lib/Iurt/DKMS.pm2
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;