X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=templates%2Fsource.list.erb;h=fb0a38612e7f2ff42fa393c18488ec296004418a;hb=0a178c338261e8b48121426e881be8c335d9ad72;hp=e8b68659406b256b27c991d9d6c53c3534001c65;hpb=6d01635dbdd2bcb3989dfdb64ac2b6cc020e59d3;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/templates/source.list.erb b/templates/source.list.erb index e8b6865..fb0a386 100644 --- a/templates/source.list.erb +++ b/templates/source.list.erb @@ -1,5 +1,11 @@ -# <%= @name %> -deb <% if @architecture %>[arch=<%= @architecture %>]<% end %><%= @location %> <%= @release_real %> <%= @repos %> +# <%= @comment %> +<%- if @include_deb then -%> +deb <%- if @architecture or @trusted_source -%> +[<%- if @architecture %>arch=<%= @architecture %> <% end %><% if @trusted_source %>trusted=yes<% end -%> +] <%- end %><%= @location %> <%= @release %> <%= @repos %> +<%- end -%> <%- if @include_src then -%> -deb-src <% if @architecture %>[arch=<%= @architecture %>]<% end %><%= @location %> <%= @release_real %> <%= @repos %> +deb-src <%- if @architecture or @trusted_source -%> +[<%- if @architecture %>arch=<%= @architecture %> <% end %><% if @trusted_source %>trusted=yes<% end -%> +] <%- end %><%= @location %> <%= @release %> <%= @repos %> <%- end -%>