Skip to content

Commit d6b5614

Browse files
committed
cmd-prune: don't die if the OCI manifest is missing
This can happen if we only uploaded the `ostree` artifact.
1 parent 4a735bd commit d6b5614

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cmd-prune

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ if os.path.exists('tmp/repo'):
190190
for build in builds.get_builds():
191191
meta = builds.get_build_meta(build['id'])
192192
build_dir = builds.get_build_dir(build['id'])
193+
# could happen if e.g. only the ostree artifact was uploaded
194+
if 'oci-manifest' not in meta['images']:
195+
continue
193196
oci_manifest = os.path.join(build_dir, meta['images']['oci-manifest']['path'])
194197
if os.path.exists(oci_manifest):
195198
with open(oci_manifest) as f:

0 commit comments

Comments
 (0)