diff options
author | Tim Meusel <tim@bastelfreak.de> | 2016-11-02 21:54:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-02 21:54:31 +0100 |
commit | df2ccc5286a5ce134348a0a52fe69c1838ad991a (patch) | |
tree | 0767f3a1e815d3731d3d25a11216cc414474aa52 | |
parent | e091e467041fa099bd22b35a65a359456961e4d6 (diff) | |
parent | 5a1628b9270d4e75c396e5d9ad0dcf47012f9c2f (diff) |
Merge pull request #72 from leonkoens/sort-options
Fix order of options to prevent swapping of lines
-rw-r--r-- | templates/options.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/options.erb b/templates/options.erb index 036d31f..3c6e2d6 100644 --- a/templates/options.erb +++ b/templates/options.erb @@ -1,5 +1,5 @@ Dpkg::Options { -<%- @_options.each_pair do |config, value| +<%- @_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('_','-') -%>"; |