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.
()
| 30 | |
| 31 | |
| 32 | def 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 | |
| 42 | DEFAULT_PUBKEY_LOCATION = get_resource_path("freedomofpress-dangerzone.pub") |
no test coverage detected