Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Cleanup for `apt::source`
[puppet-modules/puppetlabs-apt.git]
/
templates
/
source.list.erb
diff --git
a/templates/source.list.erb
b/templates/source.list.erb
index 01b2176a6ea5d0d357cb37444e4def4067111eb3..fb0a38612e7f2ff42fa393c18488ec296004418a 100644
(file)
--- a/
templates/source.list.erb
+++ b/
templates/source.list.erb
@@
-1,8
+1,11
@@
-#file generated by puppet
# <%= @comment %>
<%- if @include_deb then -%>
# <%= @comment %>
<%- if @include_deb then -%>
-deb <% if @architecture %>[arch=<%= @architecture %>] <% end %><%= @location %> <%= @release_real %> <%= @repos %>
+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 -%>
<%- 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 -%>
<%- end -%>