Skip to content

Commit 1f50fff

Browse files
committed
Backing out the LANG setting for apt, as we are still broken with non-US locales and the package locale matters.
1 parent d9307c2 commit 1f50fff

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

  • chef/lib/chef/provider/package

chef/lib/chef/provider/package/apt.rb

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ def install_package(name, version)
6464
run_command(
6565
:command => "apt-get -q -y install #{name}=#{version}",
6666
:environment => {
67-
"DEBIAN_FRONTEND" => "noninteractive",
68-
"LANG" => "en_US"
67+
"DEBIAN_FRONTEND" => "noninteractive"
6968
}
7069
)
7170
end
@@ -78,8 +77,7 @@ def remove_package(name, version)
7877
run_command(
7978
:command => "apt-get -q -y remove #{@new_resource.package_name}",
8079
:environment => {
81-
"DEBIAN_FRONTEND" => "noninteractive",
82-
"LANG" => "en_US"
80+
"DEBIAN_FRONTEND" => "noninteractive"
8381
}
8482
)
8583
end
@@ -88,8 +86,7 @@ def purge_package(name, version)
8886
run_command(
8987
:command => "apt-get -q -y purge #{@new_resource.package_name}",
9088
:environment => {
91-
"DEBIAN_FRONTEND" => "noninteractive",
92-
"LANG" => "en_US"
89+
"DEBIAN_FRONTEND" => "noninteractive"
9390
}
9491
)
9592
end
@@ -101,8 +98,7 @@ def preseed_package(name, version)
10198
run_command(
10299
:command => "debconf-set-selections #{preseed_file}",
103100
:environment => {
104-
"DEBIAN_FRONTEND" => "noninteractive",
105-
"LANG" => "en_US"
101+
"DEBIAN_FRONTEND" => "noninteractive"
106102
}
107103
)
108104
end

0 commit comments

Comments
 (0)