mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-05-01 19:22:23 +02:00

The code making the actual requests and checks now lives in the `updater.releases` module. The code should be easier to read and to reason about. Tests have been updated to reflect this.
64 lines
932 B
Python
64 lines
932 B
Python
class UpdaterError(Exception):
|
|
pass
|
|
|
|
|
|
class ImageAlreadyUpToDate(UpdaterError):
|
|
pass
|
|
|
|
|
|
class ImageNotFound(UpdaterError):
|
|
pass
|
|
|
|
|
|
class SignatureError(UpdaterError):
|
|
pass
|
|
|
|
|
|
class RegistryError(UpdaterError):
|
|
pass
|
|
|
|
|
|
class AirgappedImageDownloadError(UpdaterError):
|
|
pass
|
|
|
|
|
|
class NoRemoteSignatures(SignatureError):
|
|
pass
|
|
|
|
|
|
class SignatureVerificationError(SignatureError):
|
|
pass
|
|
|
|
|
|
class SignatureExtractionError(SignatureError):
|
|
pass
|
|
|
|
|
|
class SignaturesFolderDoesNotExist(SignatureError):
|
|
pass
|
|
|
|
|
|
class InvalidSignatures(SignatureError):
|
|
pass
|
|
|
|
|
|
class SignatureMismatch(SignatureError):
|
|
pass
|
|
|
|
|
|
class LocalSignatureNotFound(SignatureError):
|
|
pass
|
|
|
|
|
|
class CosignNotInstalledError(SignatureError):
|
|
pass
|
|
|
|
|
|
class InvalidLogIndex(SignatureError):
|
|
pass
|
|
|
|
|
|
class NeedUserInput(UpdaterError):
|
|
"""The user has not yet been prompted to know if they want to check for updates."""
|
|
|
|
pass
|