aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-04-02 15:23:41 +0000
committerOlivier Blin <oblin@mandriva.com>2008-04-02 15:23:41 +0000
commit4f9438d15e06adde52528a0c630f45c65c4d814c (patch)
tree1976f0e9c3c0e2f2651343a2c829a235eddb200a /lib
parent663a46195361910977e4c7547b8c79af4e328c8b (diff)
downloadiurt-4f9438d15e06adde52528a0c630f45c65c4d814c.tar
iurt-4f9438d15e06adde52528a0c630f45c65c4d814c.tar.gz
iurt-4f9438d15e06adde52528a0c630f45c65c4d814c.tar.bz2
iurt-4f9438d15e06adde52528a0c630f45c65c4d814c.tar.xz
iurt-4f9438d15e06adde52528a0c630f45c65c4d814c.zip
make sure dkms commands are not run in rpm post scripts
Diffstat (limited to 'lib')
-rw-r--r--lib/Iurt/DKMS.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Iurt/DKMS.pm b/lib/Iurt/DKMS.pm
index 521d61c..f50ff9c 100644
--- a/lib/Iurt/DKMS.pm
+++ b/lib/Iurt/DKMS.pm
@@ -218,6 +218,11 @@ sub dkms_compile {
next;
}
}
+
+ # make sure dkms commands are not run in rpm post scripts
+ my $dkms_conf = $chroot_tmp . "/etc/dkms/framework.conf";
+ system("sudo sh -c 'mkdir -p `dirname $dkms_conf`; echo exit 0 > $dkms_conf'");
+
foreach my $pkg ("kernel-$source", "dkms", "kernel-$kernel", $file) {
my $pkgname = basename($pkg);
if ($run->{chrooted_urpmi} && -f $pkg) {
@@ -235,6 +240,7 @@ sub dkms_compile {
}
# recreate the appropriate kernel source link
}
+ system("sudo rm -f $dkms_conf");
$ok or next;
plog('DEBUG', "symlink from /lib/modules/$modulesdir/build to /usr/src/$sourcedir");