Added support for backports in apt sources with option apt_backports = "whatever".

This commit is contained in:
Timo Mkinen 2012-07-12 21:30:30 +03:00
parent 24dacaeb8b
commit 487b593ef8

View file

@ -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.