summaryrefslogtreecommitdiffstats
path: root/perl-install/lang.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-07-20 05:57:44 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-07-20 05:57:44 +0000
commitb2a5cf0766b371562ecc68138d28e75a55f8ff46 (patch)
tree79f6c5b304b101d874018048f2936b64583dd47d /perl-install/lang.pm
parent94dd872cad528c27940c746ad75391fd099aa845 (diff)
downloaddrakx-backup-do-not-use-b2a5cf0766b371562ecc68138d28e75a55f8ff46.tar
drakx-backup-do-not-use-b2a5cf0766b371562ecc68138d28e75a55f8ff46.tar.gz
drakx-backup-do-not-use-b2a5cf0766b371562ecc68138d28e75a55f8ff46.tar.bz2
drakx-backup-do-not-use-b2a5cf0766b371562ecc68138d28e75a55f8ff46.tar.xz
drakx-backup-do-not-use-b2a5cf0766b371562ecc68138d28e75a55f8ff46.zip
(write) do not bother trying to write /etc/menu-methods/lang.h when
run as a user
Diffstat (limited to 'perl-install/lang.pm')
-rw-r--r--perl-install/lang.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm
index 90f9e2bd4..e140f9be2 100644
--- a/perl-install/lang.pm
+++ b/perl-install/lang.pm
@@ -1011,7 +1011,7 @@ sub write {
setVarsInSh($prefix . ($b_user_only ? "$ENV{HOME}/.i18n" : '/etc/sysconfig/i18n'), $h);
substInFile {
s!^function lang\b.*!function lang()="$h->{LANG}"!g;
- } "$::prefix/etc/menu-methods/lang.h";
+ } "$::prefix/etc/menu-methods/lang.h" if !$<;
eval {
my $confdir = $prefix . ($b_user_only ? "$ENV{HOME}/.kde" : '/usr') . '/share/config';