Skip to content

Commit

Permalink
[CHEF-1251] hardcoded existence check to /usr/ports/Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
aglarond committed Apr 11, 2012
1 parent 3c1c6db commit 542eeb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chef/lib/chef/provider/package/freebsd.rb
Expand Up @@ -104,7 +104,7 @@ def latest_link_name

# The name of the package (without the version number) as understood by pkg_add and pkg_info
def package_name
if File.exists?("#{port_path}/Makefile")
if ::File.exist?("/usr/ports/Makefile")
if ports_makefile_variable_value("PKGNAME") =~ /^(.+)-[^-]+$/
$1
else
Expand Down

0 comments on commit 542eeb1

Please sign in to comment.