Skip to content

Commit e179d54

Browse files
authored
Merge pull request #68 from Stricken1670/erasure
Replace erase with remove, since it's no longer supported with dnf5
2 parents 5eaa4a7 + a820fce commit e179d54

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/puppet/provider/package/yum.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ def update
345345
end
346346

347347
def purge
348-
execute([command(:cmd), "-y", :erase, @resource[:name]])
348+
execute([command(:cmd), "-y", :remove, @resource[:name]])
349349
end
350350

351351
private

spec/shared_examples/rhel_package_provider.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@
189189
end
190190

191191
describe 'when uninstalling' do
192-
it 'should use erase to purge' do
193-
expect(Puppet::Util::Execution).to receive(:execute).with(["/usr/bin/#{provider_name}", '-y', :erase, name])
192+
it 'should use remove to purge' do
193+
expect(Puppet::Util::Execution).to receive(:execute).with(["/usr/bin/#{provider_name}", '-y', :remove, name])
194194
provider.purge
195195
end
196196
end

0 commit comments

Comments
 (0)