upgrades: Fix detecting apt over tor during upgrade

- This was missed during the split of tor/torproxy apps.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2023-09-23 18:51:22 -07:00 committed by James Valleroy
parent 995749a975
commit ac84258f05
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

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