summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAntoine Beaupré <anarcat@koumbit.org>2015-06-09 11:25:34 -0400
committerAntoine Beaupré <anarcat@koumbit.org>2015-06-09 11:25:34 -0400
commit5ea69cb0390deac15d57aefc361a895a0c9a6e96 (patch)
treefbda5881df71772acf04e97104d464c380079fff /templates
parent87bfb868d7625100086a26a81743f5adbabbb988 (diff)
allow possibility of disabling backports
Diffstat (limited to 'templates')
-rw-r--r--templates/Debian/sources.list.erb10
1 files changed, 6 insertions, 4 deletions
diff --git a/templates/Debian/sources.list.erb b/templates/Debian/sources.list.erb
index d043b70..a19893d 100644
--- a/templates/Debian/sources.list.erb
+++ b/templates/Debian/sources.list.erb
@@ -19,14 +19,16 @@ deb-src <%= security_url %> <%= codename %>/updates <%= lrepos %>
# There is no security support for <%= release %>
<% end -%>
+<% if use_volatile=scope.lookupvar('apt::use_backports') -%>
# backports
-<% if (release == "testing" || release == "unstable" || release == "experimental") -%>
+<% if (release == "testing" || release == "unstable" || release == "experimental") -%>
# There is no backports archive for <%= release %>
-<% else -%>
+<% else -%>
deb <%= backports_url=scope.lookupvar('apt::backports_url') %> <%= codename %>-backports <%= lrepos %>
-<% if include_src -%>
+<% if include_src -%>
deb-src <%= backports_url %> <%= codename %>-backports <%= lrepos %>
-<% end
+<% end
+ end
end -%>
<% if use_volatile=scope.lookupvar('apt::use_volatile') -%>