summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-09-01 03:37:16 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-24 21:28:37 +0100
commitdb33f2f905bd8778c0a92015dba536854167fff7 (patch)
tree67aa318d41e7ffe1c3a16ac3c8be2efb491b1bf3
parent465e8f2473783697a8b0ea890ab4251a36ca6f92 (diff)
downloaddrakx-db33f2f905bd8778c0a92015dba536854167fff7.tar
drakx-db33f2f905bd8778c0a92015dba536854167fff7.tar.gz
drakx-db33f2f905bd8778c0a92015dba536854167fff7.tar.bz2
drakx-db33f2f905bd8778c0a92015dba536854167fff7.tar.xz
drakx-db33f2f905bd8778c0a92015dba536854167fff7.zip
do not attempt to install package in testing mode
-rwxr-xr-xperl-install/standalone/logdrake4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/standalone/logdrake b/perl-install/standalone/logdrake
index 2c98de368..94315750a 100755
--- a/perl-install/standalone/logdrake
+++ b/perl-install/standalone/logdrake
@@ -44,7 +44,9 @@ foreach (@ARGV) {
/^--alert$/ and do { alert_config(); quit() };
}
-do_pkgs_standalone->new($in)->ensure_is_installed("syslog-daemon", "/etc/systemd/system/syslog.service") or exit(0);
+if (!$::testing) {
+ do_pkgs_standalone->new($in)->ensure_is_installed("syslog-daemon", "/etc/systemd/system/syslog.service") or exit(0);
+}
my $isTail = $isFile;
$| = 1 if $isTail;