Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 691d339

Browse files
author
Akihiro Yamazaki
committed
use .tgz archive
1 parent 50ada46 commit 691d339

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

recipes/source.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
version = node['python']['version']
3636
install_path = "#{node['python']['prefix_dir']}/bin/python#{version.split(/(^\d+\.\d+)/)[1]}"
3737

38-
remote_file "#{Chef::Config[:file_cache_path]}/Python-#{version}.tar.bz2" do
39-
source "#{node['python']['url']}/#{version}/Python-#{version}.tar.bz2"
38+
remote_file "#{Chef::Config[:file_cache_path]}/Python-#{version}.tgz" do
39+
source "#{node['python']['url']}/#{version}/Python-#{version}.tgz"
4040
checksum node['python']['checksum']
4141
mode "0644"
4242
not_if { ::File.exists?(install_path) }
@@ -45,7 +45,7 @@
4545
bash "build-and-install-python" do
4646
cwd Chef::Config[:file_cache_path]
4747
code <<-EOF
48-
tar -jxvf Python-#{version}.tar.bz2
48+
tar -zxvf Python-#{version}.tgz
4949
(cd Python-#{version} && ./configure #{configure_options})
5050
(cd Python-#{version} && make && make #{make_options})
5151
EOF

0 commit comments

Comments
 (0)