diff options
-rw-r--r-- | lib/chef/provider/package/apt.rb | 4 | ||||
-rw-r--r-- | lib/chef/provider/package/zypper.rb | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/chef/provider/package/apt.rb b/lib/chef/provider/package/apt.rb index 13186097f4..ec0c6f60c0 100644 --- a/lib/chef/provider/package/apt.rb +++ b/lib/chef/provider/package/apt.rb @@ -105,11 +105,11 @@ class Chef run_noninteractive("dpkg-reconfigure", name) end - def lock_package(name, version) + def lock_package(name, version) run_noninteractive("apt-mark -q -y", new_resource.options, "hold", name) end - def unlock_package(name, version) + def unlock_package(name, version) run_noninteractive("apt-mark -q -y", new_resource.options, "unhold", name) end diff --git a/lib/chef/provider/package/zypper.rb b/lib/chef/provider/package/zypper.rb index 5b5cd0d71c..0fd5f00f49 100644 --- a/lib/chef/provider/package/zypper.rb +++ b/lib/chef/provider/package/zypper.rb @@ -79,7 +79,7 @@ class Chef islocked = false locked = shell_out_with_timeout!("zypper locks") locked.stdout.each_line do |line| - if line.split('|').shift(2).last.strip == name.first + if line.split("|").shift(2).last.strip == name.first islocked = true end end @@ -118,11 +118,11 @@ class Chef zypper_package("remove --clean-deps", name, version) end - def lock_package(name, version) + def lock_package(name, version) zypper_package("addlock", name, version) end - def unlock_package(name, version) + def unlock_package(name, version) zypper_package("removelock", name, version) end |