Skip to content

Commit

Permalink
MODULES-2889 - remove unneeded whitespace in source.list template
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Mauf committed Dec 14, 2015
1 parent 72528a0 commit 6698cbe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion spec/defines/source_compat_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
}
end

it { is_expected.to contain_apt__setting('list-my_source').with_content(/# my_source\ndeb \[arch=x86_64 \] http:\/\/debian\.mirror\.iweb\.ca\/debian\/ wheezy main\n/)
it { is_expected.to contain_apt__setting('list-my_source').with_content(/# my_source\ndeb \[arch=x86_64\] http:\/\/debian\.mirror\.iweb\.ca\/debian\/ wheezy main\n/)
}
end

Expand Down
2 changes: 1 addition & 1 deletion spec/defines/source_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@

it { is_expected.to contain_apt__setting('list-my_source').with({
:ensure => 'present',
}).with_content(/# my_source\ndeb-src \[arch=x86_64 \] hello.there wheezy main\n/)
}).with_content(/# my_source\ndeb-src \[arch=x86_64\] hello.there wheezy main\n/)
}
end

Expand Down
6 changes: 2 additions & 4 deletions templates/source.list.erb
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# <%= @comment %>
<%- if @_include['deb'] then -%>
deb <%- if @architecture or @_allow_unsigned -%>
[<%- if @architecture %>arch=<%= @architecture %> <% end %><% if @_allow_unsigned %>trusted=yes<% end -%>
] <%- end %><%= @location %> <%= @_release %> <%= @repos %>
[<%- if @architecture %>arch=<%= @architecture %><% end %><%if @architecture and @_allow_unsigned %> <% end%><% if @_allow_unsigned %>trusted=yes<% end %>] <%- end %><%= @location %> <%= @_release %> <%= @repos %>
<%- end -%>
<%- if @_include['src'] then -%>
deb-src <%- if @architecture or @_allow_unsigned -%>
[<%- if @architecture %>arch=<%= @architecture %> <% end %><% if @_allow_unsigned %>trusted=yes<% end -%>
] <%- end %><%= @location %> <%= @_release %> <%= @repos %>
[<%- if @architecture %>arch=<%= @architecture %><% end %><%if @architecture and @_allow_unsigned %> <% end%><% if @_allow_unsigned %>trusted=yes<% end %>] <%- end %><%= @location %> <%= @_release %> <%= @repos %>
<%- end -%>

0 comments on commit 6698cbe

Please sign in to comment.