Skip to content

Commit 2c5e922

Browse files
committed
buildextend-legacy-oscontainer.py: drop --digestfile
This isn't used anymore. (cherry picked from commit 3d89e1a) (cherry picked from commit 3a50a41)
1 parent ceaf375 commit 2c5e922

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/buildextend-legacy-oscontainer.py

+1-10
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def oscontainer_extract(containers_storage, tmpdir, src, dest,
9494
# oscontainer with it.
9595
def oscontainer_build(containers_storage, tmpdir, src, ref, image_name_and_tag,
9696
base_image, tls_verify=True, pushformat=None,
97-
add_directories=[], cert_dir="", authfile="", digestfile=None,
97+
add_directories=[], cert_dir="", authfile="",
9898
output=None, display_name=None, labeled_pkgs=[]):
9999
r = OSTree.Repo.new(Gio.File.new_for_path(src))
100100
r.open(None)
@@ -212,9 +212,6 @@ def oscontainer_build(containers_storage, tmpdir, src, ref, image_name_and_tag,
212212
print("Saving container to oci-archive")
213213
podCmd = buildah_base_argv + ['push']
214214

215-
if digestfile is not None:
216-
podCmd.append(f'--digestfile={digestfile}')
217-
218215
if pushformat is not None:
219216
podCmd.append(f'--format={pushformat}')
220217

@@ -264,11 +261,6 @@ def main():
264261
parser_build.add_argument("--labeled-packages", help="Packages whose NEVRAs are included as labels on the image")
265262
# For now we forcibly override to v2s2 https://bugzilla.redhat.com/show_bug.cgi?id=2058421
266263
parser_build.add_argument("--format", help="Pass through push format to buildah", default="v2s2")
267-
parser_build.add_argument(
268-
"--digestfile",
269-
help="Write image digest to file",
270-
action='store',
271-
metavar='FILE')
272264
parser.add_argument("--output", required=True, help="Write image as OCI archive to file")
273265
args = parser.parse_args()
274266

@@ -300,7 +292,6 @@ def main():
300292
containers_storage, tmpdir, args.src, args.rev, args.name,
301293
getattr(args, 'from'),
302294
display_name=args.display_name,
303-
digestfile=args.digestfile,
304295
output=args.output,
305296
add_directories=args.add_directory,
306297
pushformat=args.format,

0 commit comments

Comments
 (0)