We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7fcd86 commit 39e9fb1Copy full SHA for 39e9fb1
lib/puppet/provider/package/dpkg.rb
@@ -7,7 +7,7 @@
7
and not `apt`, you must specify the source of any packages you want
8
to manage."
9
10
- has_feature :holdable, :virtual_packages, :install_options
+ has_feature :holdable, :virtual_packages, :install_options, :uninstall_options
11
commands :dpkg => "/usr/bin/dpkg"
12
commands :dpkg_deb => "/usr/bin/dpkg-deb"
13
commands :dpkgquery => "/usr/bin/dpkg-query"
@@ -172,7 +172,11 @@ def query
172
end
173
174
def uninstall
175
- dpkg "-r", @resource[:name]
+ flags = "-r"
176
+ if @resource[:uninstall_options]
177
+ flags += @resource[:uninstall_options]
178
+ end
179
+ dpkg *flags, @resource[:name]
180
181
182
def purge
0 commit comments