Add the ability to download diffoci for multiple platforms

The hash list provided on the Github releases page is now bundled in the
`reproduce-image.py` script, and the proper hashes are checked after
download.
This commit is contained in:
Alexis Métaireau 2025-02-11 19:13:18 +01:00
parent 3a6d73dcb8
commit ee3689b32a
No known key found for this signature in database
GPG key ID: C65C7A89A8FFC56E
3 changed files with 12 additions and 1 deletions

View file

@ -126,6 +126,10 @@ class ImageNotPresentException(Exception):
pass
class MultipleImagesFoundException(Exception):
pass
class ImageInstallationException(Exception):
pass

View file

@ -1,3 +1,10 @@
import logging
log = logging.getLogger(__name__)
from .signatures import (
DEFAULT_PUBKEY_LOCATION,
is_update_available,
upgrade_container_image,
verify_local_image,
)

View file

@ -8,7 +8,7 @@ from pathlib import Path
try:
import platformdirs
except ImportError:
import appdirs as platformdirs
import appdirs as platformdirs # type: ignore[no-redef]
def get_config_dir() -> Path: