summaryrefslogtreecommitdiff
path: root/templates/options.erb
blob: 3c6e2d6b4cc4c49cec3581308df2a7b82e18ca58 (plain)
1
2
3
4
5
6
7
8
9
10
11
Dpkg::Options {
<%- @_options.sort_by{|key,value| key}.each 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 -%>
}