Skip to content

Commit

Permalink
FIXUP: Remove unnecessary container function
Browse files Browse the repository at this point in the history
  • Loading branch information
apyrgio committed Dec 5, 2024
1 parent 7b1d175 commit 103c66c
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions dangerzone/container_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,25 +112,6 @@ def delete_image_tag(tag: str) -> None:
)


def add_image_tag(cur_tag: str, new_tag: str) -> None:
"""Add a tag to an existing Dangerzone image."""
cur_image_name = CONTAINER_NAME + ":" + cur_tag
new_image_name = CONTAINER_NAME + ":" + new_tag
subprocess.check_output(
[
get_runtime(),
"tag",
cur_image_name,
new_image_name,
],
startupinfo=get_subprocess_startupinfo(),
)

log.info(
f"Successfully tagged container image '{cur_image_name}' as '{new_image_name}'"
)


def get_expected_tag() -> str:
"""Get the tag of the Dangerzone image tarball from the image-id.txt file."""
with open(get_resource_path("image-id.txt")) as f:
Expand Down

0 comments on commit 103c66c

Please sign in to comment.