aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-10-06 11:56:56 +0200
committerintrigeri <intrigeri@boum.org>2010-10-06 11:56:56 +0200
commit967df2f0104908e0fd19021158aaec8e3814188c (patch)
treebc5d3f401fe342b9f51881e4e60e24f89beaa9ad
parentb312c866d5f7d2da0786b98b42d55971219794ef (diff)
downloadpuppet-apt-967df2f0104908e0fd19021158aaec8e3814188c.tar.gz
puppet-apt-967df2f0104908e0fd19021158aaec8e3814188c.tar.bz2
Really use backports as the documentation pretends.
-rw-r--r--templates/sources.list.erb26
1 files changed, 18 insertions, 8 deletions
diff --git a/templates/sources.list.erb b/templates/sources.list.erb
index c3453d1..989d98d 100644
--- a/templates/sources.list.erb
+++ b/templates/sources.list.erb
@@ -1,11 +1,21 @@
# This file is brought to you by puppet
-# basic <%= codename %>
-deb http://ftp.debian.org/debian/ <%= codename %> main contrib non-free
-# security suppport
-<% if (codename == "sid" || codename == "unstable") -%>
-# There is no security mirror for <%= codename %>
-<% else -%>
-deb http://security.debian.org/ <%= codename %>/updates main contrib non-free
-<% end -%>
+### Debian current: <%= codename %>
+
+# basic
+deb <%= http://ftp.debian.org/debian/ %> <%= codename %> <%= repos %>
+
+# security
+<% if (release == "unstable" || release == "experimental") %>
+# There is no security support for <%= release %>
+<% else %>
+deb http://security.debian.org/ <%= codename %>/updates <%= repos %>
+<% end %>
+
+# backports
+<% if (release == "testing" || release == "unstable" || release == "experimental") %>
+# There is no backports archive for <%= release %>
+<% else %>
+deb http://backports.debian.org/debian-backports/ <%= codename %>-backports <%= repos %>
+<% end %>