lib/chef/provider/package/freebsd.rb in chef-0.10.6.beta.2 vs lib/chef/provider/package/freebsd.rb in chef-0.10.6.beta.3

- old
+ new

@@ -95,10 +95,10 @@ def install_package(name, version) unless @current_resource.version case @new_resource.source when /^ports$/ - shell_out!("make -DBATCH -f #{port_path}/Makefile install", :timeout => 1200, :env => nil).status + shell_out!("make -DBATCH install", :timeout => 1200, :env => nil, :cwd => port_path).status when /^http/, /^ftp/ shell_out!("pkg_add -r #{package_name}", :env => { "PACKAGESITE" => @new_resource.source, 'LC_ALL' => nil }).status Chef::Log.debug("#{@new_resource} installed from: #{@new_resource.source}") when /^\// shell_out!("pkg_add #{@new_resource.name}", :env => { "PKG_PATH" => @new_resource.source , 'LC_ALL'=>nil}).status