X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=templates%2Fsource.list.erb;h=84cd2cf72862bedcb557823b6d5a690cd6119b10;hb=6698cbe94bffec8469fe82b8dfafffe2ee3e6089;hp=a57244fce81e61be50470cdbdd7c39c741468312;hpb=3c48598eebbd3d62bcec69893b652dc0b71cecb7;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/templates/source.list.erb b/templates/source.list.erb index a57244f..84cd2cf 100644 --- a/templates/source.list.erb +++ b/templates/source.list.erb @@ -1,6 +1,9 @@ -#file generated by puppet # <%= @comment %> -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 %> +<%- if @_include['deb'] then -%> +deb <%- if @architecture or @_allow_unsigned -%> +[<%- 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 @architecture and @_allow_unsigned %> <% end%><% if @_allow_unsigned %>trusted=yes<% end %>] <%- end %><%= @location %> <%= @_release %> <%= @repos %> <%- end -%>