core: don't re-export get_context (MR 2252)

This makes testing a lot more annoying.

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-06-13 03:34:46 +02:00 committed by Oliver Smith
parent 42d9f4e3cd
commit 6087a9df8f
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
48 changed files with 86 additions and 55 deletions

View file

@ -1,6 +1,6 @@
# Copyright 2023 Oliver Smith
# SPDX-License-Identifier: GPL-3.0-or-later
from pmb.core import get_context
from pmb.core.context import get_context
from pmb.core.chroot import Chroot
from pmb.core.config import SystemdConfig
from pmb.core.context import Context
@ -457,7 +457,7 @@ def ask_for_device(context: Context):
def ask_for_additional_options(config):
context = pmb.core.get_context()
context = pmb.core.context.get_context()
# Allow to skip additional options
logging.info("Additional options:"
f" extra free space: {config.extra_space} MB,"