We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ec5990 commit 70640c3Copy full SHA for 70640c3
src/cmd-prune
@@ -198,8 +198,11 @@ if os.path.exists('tmp/repo'):
198
if os.path.exists(oci_manifest):
199
with open(oci_manifest) as f:
200
oci_manifest = json.load(f)
201
+ layers = oci_manifest.get('layers', [])
202
+ if len(layers) == 0:
203
+ continue
204
referenced_blobs.update([prefix + layer['digest'].replace(':', '_3A_')
- for layer in oci_manifest['layers']])
205
+ for layer in layers])
206
blobs = set(subprocess.check_output(['ostree', 'refs', '--repo=tmp/repo',
207
'--list', 'ostree/container/blob'],
208
encoding='utf-8').splitlines())
0 commit comments