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 <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
This commit is contained in:
Sunil Mohan Adapa 2025-08-06 08:45:02 -07:00 committed by Joseph Nuthalapati
parent 80705b85af
commit 3f19c91007
No known key found for this signature in database
GPG Key ID: 5398F00A2FA43C35

View File

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