summaryrefslogtreecommitdiff
path: root/templates/options.erb
blob: 036d31f3d8f518163aa566f6ccd4991f484de663 (plain)
1
2
3
4
5
6
7
8
9
10
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 -%>
}