lib/beaker/host/freebsd/pkg.rb in beaker-5.1.0 vs lib/beaker/host/freebsd/pkg.rb in beaker-5.2.0

- old
+ new

@@ -14,10 +14,10 @@ def pkgng_active?(opts = {}) opts = { :accept_all_exit_codes => true }.merge(opts) execute("/bin/sh -c '#{check_pkgng_sh}'", opts) { |r| r }.exit_code == 0 end - def install_package(package, cmdline_args = nil, opts = {}) + def install_package(package, cmdline_args = nil, _version = nil, opts = {}) cmd = if pkgng_active? "pkg install #{cmdline_args || '-y'} #{package}" else "pkg_add #{cmdline_args || '-r'} #{package}" end