commit suseRegister for openSUSE:Factory
![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package suseRegister for openSUSE:Factory checked in at Fri May 8 14:53:57 CEST 2009. -------- --- suseRegister/suseRegister.changes 2009-01-22 18:07:39.000000000 +0100 +++ /mounts/work_src_done/STABLE/suseRegister/suseRegister.changes 2009-05-08 11:04:48.000000000 +0200 @@ -1,0 +2,6 @@ +Fri May 8 11:04:31 CEST 2009 - mc@suse.de + +- do not change LANG and LANGUAGE enviroment variables + if they are already en_* (bnc#490811) + +------------------------------------------------------------------- calling whatdependson for head-i586 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ suseRegister.spec ++++++ --- /var/tmp/diff_new_pack.X20006/_old 2009-05-08 14:53:47.000000000 +0200 +++ /var/tmp/diff_new_pack.X20006/_new 2009-05-08 14:53:47.000000000 +0200 @@ -20,7 +20,7 @@ Name: suseRegister Version: 1.3 -Release: 14 +Release: 16 Summary: Registration Tool Group: Productivity/Other License: GPL v2 or later @@ -89,6 +89,9 @@ /usr/lib/suseRegister/bin/* %changelog +* Fri May 08 2009 mc@suse.de +- do not change LANG and LANGUAGE enviroment variables + if they are already en_* (bnc#490811) * Thu Jan 22 2009 mc@suse.de - fix reading proxy credentials from .curlrc(bnc#468496) * Fri Nov 21 2008 mc@suse.de ++++++ suseRegister-1.3.tar.bz2 ++++++ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/suseRegister-1.3/SRPrivate.pm new/suseRegister-1.3/SRPrivate.pm --- old/suseRegister-1.3/SRPrivate.pm 2009-01-22 18:04:12.000000000 +0100 +++ new/suseRegister-1.3/SRPrivate.pm 2009-05-08 11:04:04.000000000 +0200 @@ -2269,22 +2269,24 @@ my $lang = $ENV{LANG}; my $language = $ENV{LANGUAGE}; - + $lang = undef if($lang =~ /^en_/); + $language = undef if($language =~ /^en_/); + if(!defined $command || !-x $command) { return logPrintReturn($ctx, "invalid Command '$command'", 13) } # set lang to en_US to get output in english. - $ENV{LANG} = "en_US"; - $ENV{LANGUAGE} = "en_US"; + $ENV{LANG} = "en_US" if(defined $lang); + $ENV{LANGUAGE} = "en_US" if(defined $language); printLog($ctx, "debug1", "Execute command: $command ".join(" ",@arguments)); my $pid = open3(\*IN, \*OUT, \*ERR, $command, @arguments) or do { - $ENV{LANG} = $lang; - $ENV{LANGUAGE} = $language; + $ENV{LANG} = $lang if(defined $lang); + $ENV{LANGUAGE} = $language if(defined $language); return logPrintReturn($ctx, "Cannot execute $command ".join(" ", @arguments).": $!\n",13); }; if(defined $input) @@ -2309,8 +2311,8 @@ chomp($out); chomp($err); - $ENV{LANG} = $lang; - $ENV{LANGUAGE} = $language; + $ENV{LANG} = $lang if(defined $lang); + $ENV{LANGUAGE} = $language if(defined $language); $code = ($?>>8); ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de