Ensure Pkg is namespaced correctly.

This commit is contained in:
Markus Reiter 2018-09-06 08:26:11 +02:00
parent 271c071378
commit 171ea3fe56

View File

@ -218,7 +218,7 @@ module Hbc
def uninstall_pkgutil(*pkgs, command: nil, **_) def uninstall_pkgutil(*pkgs, command: nil, **_)
ohai "Uninstalling packages:" ohai "Uninstalling packages:"
pkgs.each do |regex| pkgs.each do |regex|
Hbc::Pkg.all_matching(regex, command).each do |pkg| ::Hbc::Pkg.all_matching(regex, command).each do |pkg|
puts pkg.package_id puts pkg.package_id
pkg.uninstall pkg.uninstall
end end