summaryrefslogtreecommitdiff
path: root/templates/Debian
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2015-02-07 16:12:55 +0000
committerintrigeri <intrigeri@boum.org>2015-02-07 16:12:55 +0000
commit85c7554c4bb06130ab3e88170842dc1b2ddbb186 (patch)
treee972226a58071cb17c4ea46fc959a0077c2ca2eb /templates/Debian
parent5a8d214529429b5dd898e0df29d69e0acf5271df (diff)
Add support for Squeeze LTS.
Diffstat (limited to 'templates/Debian')
-rw-r--r--templates/Debian/preferences_squeeze.erb5
-rw-r--r--templates/Debian/sources.list.erb12
2 files changed, 17 insertions, 0 deletions
diff --git a/templates/Debian/preferences_squeeze.erb b/templates/Debian/preferences_squeeze.erb
index efe7720..838b3a1 100644
--- a/templates/Debian/preferences_squeeze.erb
+++ b/templates/Debian/preferences_squeeze.erb
@@ -8,6 +8,11 @@ Package: *
Pin: release o=Debian,n=<%= codename %>-updates
Pin-Priority: 990
+Explanation: Debian <%= codename %>-lts
+Package: *
+Pin: release o=Debian,n=<%= codename %>-lts
+Pin-Priority: 990
+
Explanation: Debian <%= next_codename=scope.lookupvar('apt::next_codename') %>
Package: *
Pin: release o=Debian,n=<%= next_codename %>
diff --git a/templates/Debian/sources.list.erb b/templates/Debian/sources.list.erb
index 65b5945..7b99df6 100644
--- a/templates/Debian/sources.list.erb
+++ b/templates/Debian/sources.list.erb
@@ -41,6 +41,18 @@ deb-src <%= debian_url %> <%= codename %>-updates <%= lrepos %>
<% end -%>
<% end -%>
+<% if use_lts=scope.lookupvar('apt::use_lts') -%>
+# LTS
+<% if release != "oldstable" -%>
+# There is no LTS archive for <%= release %>
+<% else -%>
+deb <%= debian_url %> <%= codename %>-lts <%= lrepos %>
+<% if include_src -%>
+deb-src <%= debian_url %> <%= codename %>-lts <%= lrepos %>
+<% end -%>
+<% end -%>
+<% end -%>
+
<% if next_release=scope.lookupvar('apt::use_next_release') -%>
### Debian next: <%= next_release=scope.lookupvar('apt::next_release') ; next_codename=scope.lookupvar('apt::next_codename') %>