File tree 1 file changed +10
-2
lines changed
lib/puppet/provider/package
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 7
7
and not `apt`, you must specify the source of any packages you want
8
8
to manage."
9
9
10
- has_feature :holdable , :virtual_packages
10
+ has_feature :holdable , :virtual_packages , :install_options , :uninstall_options
11
11
commands :dpkg => "/usr/bin/dpkg"
12
12
commands :dpkg_deb => "/usr/bin/dpkg-deb"
13
13
commands :dpkgquery => "/usr/bin/dpkg-query"
@@ -94,6 +94,10 @@ def install
94
94
95
95
args = [ ]
96
96
97
+ if @resource [ :install_options ]
98
+ args += @resource [ :install_options ]
99
+ end
100
+
97
101
if @resource [ :configfiles ] == :keep
98
102
args << '--force-confold'
99
103
else
@@ -168,7 +172,11 @@ def query
168
172
end
169
173
170
174
def uninstall
171
- dpkg "-r" , @resource [ :name ]
175
+ args = [ "-r" ]
176
+ if @resource [ :uninstall_options ]
177
+ args += @resource [ :uninstall_options ]
178
+ end
179
+ dpkg *args , @resource [ :name ]
172
180
end
173
181
174
182
def purge
You can’t perform that action at this time.
0 commit comments