From 1257e7ee0a6ba1352d248ba1b20866291e453b93 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 2 Apr 2008 20:50:27 +0000 Subject: add package in the cache earlier, not to mail multiple times about incorrect dkms module --- lib/Iurt/DKMS.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/Iurt/DKMS.pm') diff --git a/lib/Iurt/DKMS.pm b/lib/Iurt/DKMS.pm index 9827990..5a03560 100644 --- a/lib/Iurt/DKMS.pm +++ b/lib/Iurt/DKMS.pm @@ -240,6 +240,8 @@ sub dkms_compile { system($command); } + $cache->{dkms}{"$realname-kernel-$modulesdir-$realversion"} = 1; + if ($kerver ne $modulesdir && -d "$chroot_tmp/var/lib/dkms/$realname/$realversion/$kerver/") { # some of the dkms modules do not handle correclty the -k option # and use uname -r to find kernel modules dir @@ -254,7 +256,7 @@ sub dkms_compile { "Iurt the rebuild bot <$config->{admin}>", 0); next; } - $cache->{dkms}{"$realname-kernel-$modulesdir-$realversion"} = 1; + if (system("sudo chroot $chroot_tmp /usr/sbin/dkms mkrpm -m $realname -v $realversion --rpm_safe_upgrade -k $modulesdir")) { plog('FAIL', "build failed ($!)"); next; -- cgit v1.2.1