mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
dangerzone.updater exposes a few funtions, constants and exceptions
This is done to avoid looking at the internal logic of `dangerzone.updater`. Only the features that actually are part of the exposed API are exposed, and do not require deep knowledge of the updater's logic to be used.
This commit is contained in:
parent
acd8717839
commit
a5636b5e74
2 changed files with 21 additions and 3 deletions
|
@ -3,11 +3,20 @@ import os
|
||||||
import platform
|
import platform
|
||||||
import shlex
|
import shlex
|
||||||
import subprocess
|
import subprocess
|
||||||
from typing import Callable, List, Tuple
|
import sys
|
||||||
|
from typing import Callable, List, Optional, Tuple
|
||||||
|
|
||||||
from .. import container_utils, errors, updater
|
from .. import container_utils, errors
|
||||||
from ..container_utils import Runtime
|
from ..container_utils import CONTAINER_NAME, Runtime
|
||||||
from ..document import Document
|
from ..document import Document
|
||||||
|
from ..updater import (
|
||||||
|
DEFAULT_PUBKEY_LOCATION,
|
||||||
|
UpdaterError,
|
||||||
|
install_local_container_tar,
|
||||||
|
is_update_available,
|
||||||
|
upgrade_container_image,
|
||||||
|
verify_local_image,
|
||||||
|
)
|
||||||
from ..util import get_resource_path, get_subprocess_startupinfo
|
from ..util import get_resource_path, get_subprocess_startupinfo
|
||||||
from .base import IsolationProvider, terminate_process_group
|
from .base import IsolationProvider, terminate_process_group
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
from .errors import SignatureError, UpdaterError
|
||||||
|
from .signatures import (
|
||||||
|
DEFAULT_PUBKEY_LOCATION,
|
||||||
|
install_local_container_tar,
|
||||||
|
is_update_available,
|
||||||
|
upgrade_container_image,
|
||||||
|
verify_local_image,
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue