aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt/DKMS.pm
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2012-03-12 18:13:57 +0000
committerPascal Terjan <pterjan@mageia.org>2012-03-12 18:13:57 +0000
commite5fefd376242c7024cce11b6b2e62749aed53bd9 (patch)
tree1e6dbca5288acca174a672b4cb217679abe6980b /lib/Iurt/DKMS.pm
parent795d8a847ba15ee5d5d8fd1eda8742e41b4d90e5 (diff)
downloadiurt-e5fefd376242c7024cce11b6b2e62749aed53bd9.tar
iurt-e5fefd376242c7024cce11b6b2e62749aed53bd9.tar.gz
iurt-e5fefd376242c7024cce11b6b2e62749aed53bd9.tar.bz2
iurt-e5fefd376242c7024cce11b6b2e62749aed53bd9.tar.xz
iurt-e5fefd376242c7024cce11b6b2e62749aed53bd9.zip
Never manually write to log file
Diffstat (limited to 'lib/Iurt/DKMS.pm')
-rw-r--r--lib/Iurt/DKMS.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Iurt/DKMS.pm b/lib/Iurt/DKMS.pm
index 535e822..d5613e8 100644
--- a/lib/Iurt/DKMS.pm
+++ b/lib/Iurt/DKMS.pm
@@ -238,7 +238,7 @@ sub dkms_compile {
plog('DEBUG', "symlink from $modules_build_dir to /usr/src/$sourcedir");
if (system("sudo ln -sf /usr/src/$sourcedir $modules_build_dir")) {
- plog('ERROR', "linking failed ($!)");
+ plog('ERROR', "ERROR: linking failed ($!)");
next;
}
}
@@ -282,13 +282,13 @@ sub dkms_compile {
if (system("cp $rpms $dkms_spool/$media/ &>/dev/null") == 0) {
$copied = 1;
sudo($run, $config, '--rm', $rpms)
- or $run->{LOG}->("ERROR: could not delete dkms packages from $rpms ($!)\n");
+ or plog('ERROR', "ERROR: could not delete dkms packages from $rpms ($!)");
last;
}
}
- $run->{LOG}->("ERROR: could not copy dkms packages from " .
+ plog('ERROR', "ERROR: could not copy dkms packages from " .
join(" or ", map { "$chroot_tmp$_/*.rpm" } @dkms_rpm_dirs) .
- " to $dkms_spool/$media ($!)\n") if !$copied;
+ " to $dkms_spool/$media ($!)") if !$copied;
process_dkms_queue($self, 0, 0, $media, "$dkms_spool/$media");
# compile dkms modules