mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
upgrades: Display correct backports info for unstable
Backports are not enabled and cannot be activated on unstable. Signed-off-by: James Valleroy <jvalleroy@mailbox.org> [sunil: Add statement that backports may not be necessary] Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
8f4681fd10
commit
2f7b3264d1
@ -15,20 +15,27 @@
|
||||
Frequent feature updates can be activated. Activating them is
|
||||
recommended.
|
||||
{% endblocktrans %}
|
||||
{% else %}
|
||||
{% elif is_backports_enabled %}
|
||||
{% blocktrans trimmed %}
|
||||
Frequent feature updates are enabled.
|
||||
{% endblocktrans %}
|
||||
{% else %}
|
||||
{% blocktrans trimmed %}
|
||||
Frequent feature updates cannot be activated. They may not be necessary
|
||||
on your distribution.
|
||||
{% endblocktrans %}
|
||||
{% endif %}
|
||||
</p>
|
||||
<p>
|
||||
{% blocktrans trimmed %}
|
||||
This will allow a very limited set of software, including FreedomBox
|
||||
service, to be updated to receive newer features regularly instead of once
|
||||
every 2 years or so. Note that packages with frequent feature updates do
|
||||
not have support from Debian Security Team. They are instead maintained by
|
||||
contributors to Debian and the FreedomBox community.
|
||||
{% endblocktrans %}
|
||||
{% if can_activate_backports or is_backports_enabled %}
|
||||
{% blocktrans trimmed %}
|
||||
This will allow a very limited set of software, including FreedomBox
|
||||
service, to be updated to receive newer features regularly instead of
|
||||
once every 2 years or so. Note that packages with frequent feature
|
||||
updates do not have support from Debian Security Team. They are instead
|
||||
maintained by contributors to Debian and the FreedomBox community.
|
||||
{% endblocktrans %}
|
||||
{% endif %}
|
||||
</p>
|
||||
{% if can_activate_backports %}
|
||||
<div class="alert alert-warning" role="alert">
|
||||
|
||||
@ -29,6 +29,7 @@ class UpgradesConfigurationView(AppView):
|
||||
def get_context_data(self, *args, **kwargs):
|
||||
context = super().get_context_data(*args, **kwargs)
|
||||
context['can_activate_backports'] = upgrades.can_activate_backports()
|
||||
context['is_backports_enabled'] = upgrades.is_backports_enabled()
|
||||
context['is_busy'] = package.is_package_manager_busy()
|
||||
context['log'] = get_log()
|
||||
context['refresh_page_sec'] = 3 if context['is_busy'] else None
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user