summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/options.erb11
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/options.erb b/templates/options.erb
new file mode 100644
index 0000000..036d31f
--- /dev/null
+++ b/templates/options.erb
@@ -0,0 +1,11 @@
+Dpkg::Options {
+<%- @_options.each_pair do |config, value|
+ if %w(force_confdef force_confold force_confnew force_confmiss).include?(config) then
+ if value then -%>
+ "--<%= config.sub('_','-') -%>";
+ <%- end
+ else
+ scope.function_fail(["#{config} not a valid key for $unattended_upgrades::options"])
+ end
+end -%>
+}