summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-07-22 22:08:10 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-07-22 22:08:10 +0000
commitf7c71fd64ce30e0b5403814e0822a9e3fc405797 (patch)
tree6bb809cf2d644ba519f734563bb3643b074e4cad /perl-install
parentc96642861bba6922ac20ba07ff7d1fbdddb7147b (diff)
downloaddrakx-f7c71fd64ce30e0b5403814e0822a9e3fc405797.tar
drakx-f7c71fd64ce30e0b5403814e0822a9e3fc405797.tar.gz
drakx-f7c71fd64ce30e0b5403814e0822a9e3fc405797.tar.bz2
drakx-f7c71fd64ce30e0b5403814e0822a9e3fc405797.tar.xz
drakx-f7c71fd64ce30e0b5403814e0822a9e3fc405797.zip
do not install package in testing mode
Diffstat (limited to 'perl-install')
-rwxr-xr-xperl-install/standalone/drakgw2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/standalone/drakgw b/perl-install/standalone/drakgw
index 3a9a4f98f..0e11c0afb 100755
--- a/perl-install/standalone/drakgw
+++ b/perl-install/standalone/drakgw
@@ -378,7 +378,7 @@ my %rpm2file = ('dhcp-server' => '/usr/sbin/dhcpd',
my @needed_to_install = grep { !-e $rpm2file{$_} } keys %rpm2file;
@needed_to_install and $in->do_pkgs->install(@needed_to_install);
#- second: try one by one if failure detected
-if (any { !-e $rpm2file{$_} } keys %rpm2file) {
+if (!$::testing && any { !-e $rpm2file{$_} } keys %rpm2file) {
foreach (keys %rpm2file) {
-e $rpm2file{$_} or $in->do_pkgs->install($_);
-e $rpm2file{$_} or fatal_quit(N("Problems installing package %s", $_));