X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=templates%2Fsource.list.erb;h=fe7f55941a1ac43098ed15b2e9aed0461818d499;hb=0ca555f5525f20ba9dfc4518459b17956b28e886;hp=541534e65bd8a383844e9e2d172a4a23ed43feb7;hpb=6697a9c9711b77d1f6a7b7ee6c1c2c1f428f8362;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/templates/source.list.erb b/templates/source.list.erb index 541534e..fe7f559 100644 --- a/templates/source.list.erb +++ b/templates/source.list.erb @@ -1,6 +1,11 @@ -#file generated by puppet -# <%= @name %> -deb <% if @architecture %>[arch=<%= @architecture %>] <% end %><%= @location %> <%= @release_real %> <%= @repos %> -<%- if @include_src then -%> -deb-src <% if @architecture %>[arch=<%= @architecture %>] <% end %><%= @location %> <%= @release_real %> <%= @repos %> +# <%= @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 %> +<%- 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 %> <%- end -%>