aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-04-02 20:50:27 +0000
committerOlivier Blin <oblin@mandriva.com>2008-04-02 20:50:27 +0000
commit1257e7ee0a6ba1352d248ba1b20866291e453b93 (patch)
treef1f72f014efdcc907308477b3922939300684759 /lib/Iurt
parente3116a5c51974085ffab445c07d269d0eb4b00d9 (diff)
downloadiurt-1257e7ee0a6ba1352d248ba1b20866291e453b93.tar
iurt-1257e7ee0a6ba1352d248ba1b20866291e453b93.tar.gz
iurt-1257e7ee0a6ba1352d248ba1b20866291e453b93.tar.bz2
iurt-1257e7ee0a6ba1352d248ba1b20866291e453b93.tar.xz
iurt-1257e7ee0a6ba1352d248ba1b20866291e453b93.zip
add package in the cache earlier, not to mail multiple times about incorrect dkms module
Diffstat (limited to 'lib/Iurt')
-rw-r--r--lib/Iurt/DKMS.pm4
1 files changed, 3 insertions, 1 deletions
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;