From d063ecb2cb0cb493f301bb1ef00c749ec06b270e Mon Sep 17 00:00:00 2001 From: Yan Song Date: Sat, 18 Jun 2022 08:25:01 +0000 Subject: [PATCH] builder: fix lost blob meta for stargz build Signed-off-by: Yan Song --- src/bin/nydus-image/core/blob.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/nydus-image/core/blob.rs b/src/bin/nydus-image/core/blob.rs index 111d5cf63dd..7192981c540 100644 --- a/src/bin/nydus-image/core/blob.rs +++ b/src/bin/nydus-image/core/blob.rs @@ -112,7 +112,7 @@ impl Blob { pub(crate) fn dump_meta_data(ctx: &BuildContext, blob_ctx: &mut BlobContext) -> Result<()> { // Dump is only required if there is chunk in the blob or blob meta info enabled - if !blob_ctx.blob_meta_info_enabled || blob_ctx.compressed_blob_size == 0 { + if !blob_ctx.blob_meta_info_enabled || blob_ctx.decompressed_blob_size == 0 { return Ok(()); }