module-apt/templates/Debian/sources.list.erb
intrigeri e19b574e23 Starting from Squeeze, Debian Volatile is deprecated in favor of CODENAME-updates.
Take this into account in the Debian sources.list template:
  - go on using volatile.d.o for <= Lenny sources lines
  - start using CODENAME-updates for Squeeze and newer.

Reference: http://lists.debian.org/debian-volatile/2011/01/msg00008.html
2011-02-07 11:17:07 +01:00

98 lines
3.1 KiB
Text

# This file is managed by puppet
# all local modifications will be overwritten
### Debian current: <%= codename %>
# basic
deb <%= debian_url %> <%= codename %> <%= repos %>
<% if include_src then -%>
deb-src <%= debian_url %> <%= codename %> <%= repos %>
<% end -%>
# security
<% if (release == "unstable" || release == "experimental") -%>
# There is no security support for <%= release %>
<% else -%>
deb <%= security_url %> <%= codename %>/updates <%= repos %>
<% if include_src then -%>
deb-src <%= security_url %> <%= codename %>/updates <%= repos %>
<% end -%>
<% end -%>
# backports
<% if (release == "testing" || release == "unstable" || release == "experimental") -%>
# There is no backports archive for <%= release %>
<% else -%>
deb <%= backports_url %> <%= codename %>-backports <%= repos %>
<% if include_src then -%>
deb-src <%= backports_url %> <%= codename %>-backports <%= repos %>
<% end -%>
<% end -%>
<% if use_volatile -%>
# volatile
<% if (release == "testing" || release == "unstable" || release == "experimental") -%>
# There is no volatile archive for <%= release %>
<% else -%>
<% if (codename == "lenny" || codename == "etch") -%>
deb <%= volatile_url %> <%= codename %>/volatile <%= repos %>
<% if include_src then -%>
deb-src <%= volatile_url %> <%= codename %>/volatile <%= repos %>
<% end -%>
<% else -%>
deb <%= debian_url %> <%= codename %>-updates <%= repos %>
<% if include_src then -%>
deb-src <%= debian_url %> <%= codename %>-updates <%= repos %>
<% end -%>
<% end -%>
<% end -%>
<% end -%>
<% if use_next_release then -%>
### Debian next: <%= next_codename %>
# basic
deb <%= debian_url %> <%= next_codename %> <%= repos %>
<% if include_src then -%>
deb-src <%= debian_url %> <%= next_codename %> <%= repos %>
<% end -%>
# security
<% if (next_release == "unstable" || next_release == "experimental") -%>
# There is no security support for <%= next_release %>
<% else -%>
deb <%= security_url %> <%= next_codename %>/updates <%= repos %>
<% if include_src then -%>
deb-src <%= security_url %> <%= next_codename %>/updates <%= repos %>
<% end -%>
<% end -%>
# backports
<% if (next_release == "testing" || next_release == "unstable" || next_release == "experimental") -%>
# There is no backports archive for <%= next_release %>
<% else -%>
deb <%= backports_url %> <%= next_codename %>-backports <%= repos %>
<% if include_src then -%>
deb-src <%= backports_url %> <%= next_codename %>-backports <%= repos %>
<% end -%>
<% end -%>
<% if use_volatile -%>
# volatile
<% if (next_release == "testing" || next_release == "unstable" || next_release == "experimental") -%>
# There is no volatile archive for <%= next_release %>
<% else -%>
<% if (next_codename == "lenny" || next_codename == "etch") -%>
deb <%= volatile_url %> <%= next_codename %>/volatile <%= repos %>
<% if include_src then -%>
deb-src <%= volatile_url %> <%= next_codename %>/volatile <%= repos %>
<% end -%>
<% else -%>
deb <%= debian_url %> <%= next_codename %>-updates <%= repos %>
<% if include_src then -%>
deb-src <%= debian_url %> <%= next_codename %>-updates <%= repos %>
<% end -%>
<% end -%>
<% end -%>
<% end -%>
<% end -%>