From 3f19c91007bbb84856e901c64f30982fcf766210 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 6 Aug 2025 08:45:02 -0700 Subject: [PATCH] views: Remove unused code related to refresh packages button - This change was part of the original pull request !2661 but was missed in its continuation !2677. Tests: - Installing an app works. Signed-off-by: Sunil Mohan Adapa Reviewed-by: Joseph Nuthalapati --- plinth/views.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/plinth/views.py b/plinth/views.py index 15c0d739a..6509e2101 100644 --- a/plinth/views.py +++ b/plinth/views.py @@ -31,7 +31,7 @@ from plinth.modules.firewall.components import get_port_forwarding_info from plinth.package import Packages from plinth.translation import get_language_from_request, set_language -from . import forms, frontpage, operation, package, setup +from . import forms, frontpage, operation, setup REDIRECT_FIELD_NAME = 'next' @@ -537,11 +537,6 @@ class SetupView(TemplateView): response.status_code = 303 return response - if 'refresh-packages' in request.POST: - # Refresh apt package lists - package.refresh_package_lists() - return self.render_to_response(self.get_context_data()) - return super().dispatch(request, *args, **kwargs) @staticmethod