X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=templates%2Fsource.list.erb;h=fb0a38612e7f2ff42fa393c18488ec296004418a;hb=0a178c338261e8b48121426e881be8c335d9ad72;hp=a57244fce81e61be50470cdbdd7c39c741468312;hpb=986bf8b02d254334a6c3f22f18be5769e02a9c3a;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/templates/source.list.erb b/templates/source.list.erb index a57244f..fb0a386 100644 --- a/templates/source.list.erb +++ b/templates/source.list.erb @@ -1,6 +1,11 @@ -#file generated by puppet # <%= @comment %> -deb <% if @architecture %>[arch=<%= @architecture %>] <% end %><%= @location %> <%= @release_real %> <%= @repos %> +<%- 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 -%>