aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-10-06 12:09:38 +0200
committerintrigeri <intrigeri@boum.org>2010-10-06 12:09:38 +0200
commit50136de4209478cf3e266ea4fdc8b54928337a29 (patch)
treec466984ff9e42f440bd85b7b97f40595cd931102 /templates
parentde94b807ee9495d63d1afe16579bd435826e20f0 (diff)
downloadpuppet-apt-50136de4209478cf3e266ea4fdc8b54928337a29.tar.gz
puppet-apt-50136de4209478cf3e266ea4fdc8b54928337a29.tar.bz2
Add opt-in support for deb-src.
Diffstat (limited to 'templates')
-rw-r--r--templates/sources.list.erb12
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/sources.list.erb b/templates/sources.list.erb
index d3739ff..35fac32 100644
--- a/templates/sources.list.erb
+++ b/templates/sources.list.erb
@@ -4,12 +4,18 @@
# basic
deb <%= http://ftp.debian.org/debian/ %> <%= codename %> <%= repos %>
+<% if include_src then %>
+deb-src <%= http://ftp.debian.org/debian/ %> <%= codename %> <%= repos %>
+<% end %>
# security
<% if (release == "unstable" || release == "experimental") %>
# There is no security support for <%= release %>
<% else %>
deb http://security.debian.org/ <%= codename %>/updates <%= repos %>
+<% if include_src then %>
+deb-src http://security.debian.org/ <%= codename %>/updates <%= repos %>
+<% end %>
<% end %>
# backports
@@ -17,6 +23,9 @@ deb http://security.debian.org/ <%= codename %>/updates <%= repos %>
# There is no backports archive for <%= release %>
<% else %>
deb http://backports.debian.org/debian-backports/ <%= codename %>-backports <%= repos %>
+<% if include_src then %>
+deb-src http://backports.debian.org/debian-backports/ <%= codename %>-backports <%= repos %>
+<% end %>
<% end %>
<% if use_volatile %>
@@ -25,6 +34,9 @@ deb http://backports.debian.org/debian-backports/ <%= codename %>-backports <%=
# There is no volatile archive for <%= release %>
<% else %>
deb http://volatile.debian.org/debian-volatile/ <%= codename %>/volatile <%= repos %>
+<% if include_src then %>
+deb-src http://volatile.debian.org/debian-volatile/ <%= codename %>/volatile <%= repos %>
+<% end %>
<% end %>
<% end %>