diff --git a/plinth/modules/upgrades/templates/upgrades_configure.html b/plinth/modules/upgrades/templates/upgrades_configure.html index 1e6a308b8..11f0b5a0f 100644 --- a/plinth/modules/upgrades/templates/upgrades_configure.html +++ b/plinth/modules/upgrades/templates/upgrades_configure.html @@ -14,7 +14,7 @@ {% blocktrans trimmed %} Backports can be activated. This will allow a limited set of software, including FreedomBox service, to be upgraded to newer versions from - Debian backports repository. + Debian {{ dist }}-backports repository. {% endblocktrans %}
diff --git a/plinth/modules/upgrades/views.py b/plinth/modules/upgrades/views.py index 61ec6a661..77e12c2fa 100644 --- a/plinth/modules/upgrades/views.py +++ b/plinth/modules/upgrades/views.py @@ -3,6 +3,8 @@ FreedomBox app for upgrades. """ +import subprocess + from django.contrib import messages from django.shortcuts import redirect from django.urls import reverse_lazy @@ -29,6 +31,8 @@ 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['dist'] = subprocess.check_output( + ['lsb_release', '--codename', '--short']).decode().strip() context['is_busy'] = package.is_package_manager_busy() context['log'] = get_log() context['refresh_page_sec'] = 3 if context['is_busy'] else None