Cleanup for `apt::source`
[puppet-modules/puppetlabs-apt.git] / templates / source.list.erb
index faa7e286ece80cfafd89db734010328030b03c24..fb0a38612e7f2ff42fa393c18488ec296004418a 100644 (file)
@@ -1,5 +1,11 @@
-# <%= name %>
-deb <%= location %> <%= release_real %> <%= repos %>
-<%- if include_src then -%>
-deb-src <%= 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 or @trusted_source -%>
+[<%- if @architecture %>arch=<%= @architecture %> <% end %><% if @trusted_source %>trusted=yes<% end -%>
+] <%- end %><%= @location %> <%= @release %> <%= @repos %>
 <%- end -%>