From ac84258f0520bff477a513cb703b88a8538e053f Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sat, 23 Sep 2023 18:51:22 -0700 Subject: [PATCH] upgrades: Fix detecting apt over tor during upgrade - This was missed during the split of tor/torproxy apps. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/upgrades/privileged.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plinth/modules/upgrades/privileged.py b/plinth/modules/upgrades/privileged.py index fd020a8cb..1369e61b5 100644 --- a/plinth/modules/upgrades/privileged.py +++ b/plinth/modules/upgrades/privileged.py @@ -198,7 +198,7 @@ def get_log() -> str: def _get_protocol() -> str: """Return the protocol to use for newly added repository sources.""" try: - from plinth.modules.tor import utils + from plinth.modules.torproxy import utils if utils.is_apt_transport_tor_enabled(): return 'tor+http' except Exception: