Merge pull request #453 from puppetlabs/daenney/location-required
[puppet-modules/puppetlabs-apt.git] / templates / source.list.erb
index fb0a38612e7f2ff42fa393c18488ec296004418a..26838db51b100fbe0380c2dbb826cf96067b4a6f 100644 (file)
@@ -1,11 +1,11 @@
 # <%= @comment %>
-<%- if @include_deb then -%>
-deb <%- if @architecture or @trusted_source -%>
-[<%- if @architecture %>arch=<%= @architecture %> <% end %><% if @trusted_source %>trusted=yes<% end -%>
+<%- 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 @trusted_source -%>
-[<%- if @architecture %>arch=<%= @architecture %> <% end %><% if @trusted_source %>trusted=yes<% 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 -%>