Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/subexec/files: subexec-0.2.2-lang.patch
Date: Mon, 30 Apr 2012 18:50:48
Message-Id: 20120430185008.879822004C@flycatcher.gentoo.org
1 flameeyes 12/04/30 18:50:08
2
3 Added: subexec-0.2.2-lang.patch
4 Log:
5 Version bump; requires a patch to work properly still.
6
7 (Portage version: 2.2.0_alpha101/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 dev-ruby/subexec/files/subexec-0.2.2-lang.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/subexec/files/subexec-0.2.2-lang.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/subexec/files/subexec-0.2.2-lang.patch?rev=1.1&content-type=text/plain
14
15 Index: subexec-0.2.2-lang.patch
16 ===================================================================
17 From 2756e8c6815db57ae25d82f9e11ed3a03d23e0cc Mon Sep 17 00:00:00 2001
18 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@×××××××××.eu>
19 Date: Mon, 30 Apr 2012 11:37:06 -0700
20 Subject: [PATCH 1/2] Fix exporting of LANG setting for Unix platforms.
21 MIME-Version: 1.0
22 Content-Type: text/plain; charset=UTF-8
23 Content-Transfer-Encoding: 8bit
24
25 When exporting a variable you should use the name, not the content.
26
27 Signed-off-by: Diego Elio Pettenò <flameeyes@×××××××××.eu>
28 ---
29 lib/subexec.rb | 2 +-
30 1 files changed, 1 insertions(+), 1 deletions(-)
31
32 diff --git a/lib/subexec.rb b/lib/subexec.rb
33 index 2bbbf69..28c5092 100644
34 --- a/lib/subexec.rb
35 +++ b/lib/subexec.rb
36 @@ -117,7 +117,7 @@ class Subexec
37 if !(RUBY_PLATFORM =~ /win32|mswin|mingw/).nil?
38 self.output = `set LANG=#{lang} && #{command} 2>&1`
39 else
40 - self.output = `LANG=#{lang} && export $LANG && #{command} 2>&1`
41 + self.output = `LANG=#{lang} && export LANG && #{command} 2>&1`
42 end
43 self.exitstatus = $?.exitstatus
44 end
45 --
46 1.7.8.6