MCPcopy
hub / github.com/freedomofpress/dangerzone / is_container_tar_bundled

Function is_container_tar_bundled

dangerzone/updater/signatures.py:32–39  ·  view source on GitHub ↗

Check if a container.tar file is bundled with this installation. The default dangerzone package does not include a bundled container image, requiring users to download it from the registry. The dangerzone-full package includes the container.

()

Source from the content-addressed store, hash-verified

30
31
32def is_container_tar_bundled() -> bool:
33 """Check if a container.tar file is bundled with this installation.
34
35 The default dangerzone package does not include a bundled container image,
36 requiring users to download it from the registry. The dangerzone-full
37 package includes the container.
38 """
39 return get_resource_path("container.tar").exists()
40
41
42DEFAULT_PUBKEY_LOCATION = get_resource_path("freedomofpress-dangerzone.pub")

Callers 4

should_check_for_updatesFunction · 0.85
runMethod · 0.85

Calls 1

get_resource_pathFunction · 0.85

Tested by

no test coverage detected