summaryrefslogtreecommitdiff
path: root/templates/Debian
diff options
context:
space:
mode:
Diffstat (limited to 'templates/Debian')
-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..ce43135 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_backports=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') -%>