Skip to content

Commit e7fcd86

Browse files
[dpkg] add install_options feature
1 parent 272abb9 commit e7fcd86

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/puppet/provider/package/dpkg.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
and not `apt`, you must specify the source of any packages you want
88
to manage."
99

10-
has_feature :holdable, :virtual_packages
10+
has_feature :holdable, :virtual_packages, :install_options
1111
commands :dpkg => "/usr/bin/dpkg"
1212
commands :dpkg_deb => "/usr/bin/dpkg-deb"
1313
commands :dpkgquery => "/usr/bin/dpkg-query"
@@ -94,6 +94,10 @@ def install
9494

9595
args = []
9696

97+
if @resource[:install_options]
98+
args << @resource[:install_options]
99+
end
100+
97101
if @resource[:configfiles] == :keep
98102
args << '--force-confold'
99103
else

0 commit comments

Comments
 (0)