]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/buildd/templates/etc/apt/sources.list.d/buildd.list.erb
no more lenny
[dsa-puppet.git] / modules / buildd / templates / etc / apt / sources.list.d / buildd.list.erb
index b1d9be4d9269fee6638b8b2a04997bbde302b694..8ffb4c6f379bdefae4ec01515e5d69052b61bd5c 100644 (file)
@@ -3,14 +3,22 @@
 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
 ##
 
-<% if nodeinfo.has_key?('squeeze') and nodeinfo['squeeze'] %>
-deb https://buildd.debian.org/apt/ squeeze main
-<% else %>
-deb https://buildd.debian.org/apt/ lenny main
-<% end %>
+<%
+  builddsuites = %w{squeeze wheezy}
+  testingunstable = 'wheezy'
+  if builddsuites.include?(lsbdistcodename)
+    suite = lsbdistcodename
+  else
+    suite = testingunstable
+  end
+%>
+
+# The buildd default repository.
+deb https://buildd.debian.org/apt/ <%= suite %> main
 
 <% if %w{alkman porpora zandonai}.include?(hostname) -%>
-deb https://buildd.debian.org/apt/ lenny-proposed main
+# Include the current test version too.
+deb https://buildd.debian.org/apt/ <%= suite %>-proposed main
 <% elsif %w{krenek}.include?(hostname) -%>
-deb https://buildd.debian.org/apt/ lenny-experimental main
+deb https://buildd.debian.org/apt/ <%= suite %>-experimental main
 <% end %>