mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
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:
parent
995749a975
commit
ac84258f05
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user