MODULES-2889 - remove unneeded whitespace in source.list template
This commit is contained in:
parent
72528a014c
commit
6698cbe94b
3 changed files with 4 additions and 6 deletions
|
@ -117,7 +117,7 @@ describe 'apt::source', :type => :define do
|
|||
}
|
||||
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
|
||||
|
||||
|
|
|
@ -227,7 +227,7 @@ describe 'apt::source' do
|
|||
|
||||
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
|
||||
|
||||
|
|
|
@ -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 -%>
|
||||
|
|
Loading…
Reference in a new issue