summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAntoine Beaupré <anarcat@koumbit.org>2015-06-09 11:34:51 -0400
committerAntoine Beaupré <anarcat@koumbit.org>2015-06-09 11:34:51 -0400
commit3da1db27075082603a862c8fd5c3c1396e062bc8 (patch)
treecc39e55a539938ea613430be03c4a8b3d16c16ca /templates
parentdbee5c9487c8d06f27f1a3bb17f70bf870490258 (diff)
also control backports on ubuntu
Diffstat (limited to 'templates')
-rw-r--r--templates/Ubuntu/sources.list.erb6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/Ubuntu/sources.list.erb b/templates/Ubuntu/sources.list.erb
index 8d2585d..f3ef37c 100644
--- a/templates/Ubuntu/sources.list.erb
+++ b/templates/Ubuntu/sources.list.erb
@@ -19,8 +19,10 @@ deb <%= ubuntu_url %> <%= codename %>-security <%= lrepos %>
deb-src <%= ubuntu_url %> <%= codename %>-security <%= lrepos %>
<% end -%>
+<% if use_backports=scope.lookupvar('apt::use_backports') -%>
# backports
deb <%= ubuntu_url %> <%= codename %>-backports <%= lrepos %>
-<% if include_src -%>
+<% if include_src -%>
deb-src <%= ubuntu_url %> <%= codename %>-backports <%= lrepos %>
-<% end -%>
+<% end
+ end -%>