Update install_package.rb

making only_if a block