From 487b593ef84a070126b8c51bf95c4eeb90d40040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Thu, 12 Jul 2012 21:30:30 +0300 Subject: [PATCH] Added support for backports in apt sources with option apt_backports = "whatever". --- apt/templates/sources.list.erb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apt/templates/sources.list.erb b/apt/templates/sources.list.erb index 7d643bf..98e3fda 100644 --- a/apt/templates/sources.list.erb +++ b/apt/templates/sources.list.erb @@ -34,8 +34,13 @@ deb-src <%= apt_archive_url %> <%= lsbdistcodename %>-updates multiverse ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. +<% if has_variable?("apt_backports") -%> +deb <%= apt_archive_url %> <%= lsbdistcodename %>-backports main restricted universe multiverse +deb-src <%= apt_archive_url %> <%= lsbdistcodename %>-backports main restricted universe multiverse +<% else -%> # deb <%= apt_archive_url %> <%= lsbdistcodename %>-backports main restricted universe multiverse # deb-src <%= apt_archive_url %> <%= lsbdistcodename %>-backports main restricted universe multiverse +<% end -%> ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository.