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
11adba8ab7
commit
b61a65db01
2 changed files with 21 additions and 3 deletions
|
@ -3,11 +3,20 @@ import os
|
|||
import platform
|
||||
import shlex
|
||||
import subprocess
|
||||
from typing import Callable, List, Tuple
|
||||
import sys
|
||||
from typing import Callable, List, Optional, Tuple
|
||||
|
||||
from .. import container_utils, errors, updater
|
||||
from ..container_utils import Runtime
|
||||
from .. import container_utils, errors
|
||||
from ..container_utils import CONTAINER_NAME, Runtime
|
||||
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 .base import IsolationProvider, terminate_process_group
|
||||
|
||||
|
|
|
@ -1,3 +1,12 @@
|
|||
import logging
|
||||
|
||||
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