summaryrefslogtreecommitdiffstats
path: root/perl-install/printer
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-02-19 13:28:39 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-02-19 13:28:39 +0000
commite6ca5aa275b8e33f1e32ee0a8bed7c7701637910 (patch)
treebc4a4f1115c4d15f4fd4f1db970734a96bbd4ef3 /perl-install/printer
parent4c6fa45cd016b61e3b14e6f5a31da7bb5a7474b0 (diff)
downloaddrakx-backup-do-not-use-e6ca5aa275b8e33f1e32ee0a8bed7c7701637910.tar
drakx-backup-do-not-use-e6ca5aa275b8e33f1e32ee0a8bed7c7701637910.tar.gz
drakx-backup-do-not-use-e6ca5aa275b8e33f1e32ee0a8bed7c7701637910.tar.bz2
drakx-backup-do-not-use-e6ca5aa275b8e33f1e32ee0a8bed7c7701637910.tar.xz
drakx-backup-do-not-use-e6ca5aa275b8e33f1e32ee0a8bed7c7701637910.zip
(set_usermode) do not die when run with --testing as user
Diffstat (limited to 'perl-install/printer')
-rw-r--r--perl-install/printer/main.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/printer/main.pm b/perl-install/printer/main.pm
index 1fa15d916..fa42e4b54 100644
--- a/perl-install/printer/main.pm
+++ b/perl-install/printer/main.pm
@@ -666,7 +666,7 @@ sub get_cups_autoconf() { $sysconfig{CUPS_CONFIG} ne 'manual' ? 1 : 0 }
sub set_usermode {
my ($usermode) = @_;
$sysconfig{USER_MODE} = $usermode ? "expert" : "recommended";
- setVarsInSh("$::prefix/etc/sysconfig/printing", \%sysconfig);
+ setVarsInSh("$::prefix/etc/sysconfig/printing", \%sysconfig) if !$::testing;
return $usermode;
}