From cac92f62c478288c50b401562d3d3c9baec8e71d Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Tue, 28 Jul 2015 12:28:25 +0200 Subject: [PATCH] static-delta: do not fail compilation with big files Just skip the bsdiff compression instead of failing the operation. Signed-off-by: Giuseppe Scrivano --- src/libostree/ostree-repo-static-delta-compilation.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libostree/ostree-repo-static-delta-compilation.c b/src/libostree/ostree-repo-static-delta-compilation.c index 760b5633..6f1513c9 100644 --- a/src/libostree/ostree-repo-static-delta-compilation.c +++ b/src/libostree/ostree-repo-static-delta-compilation.c @@ -523,7 +523,10 @@ try_content_bsdiff (OstreeRepo *repo, /* TODO: make this option configurable. */ if (g_bytes_get_size (tmp_to) + g_bytes_get_size (tmp_from) > (200 * (1 << 20))) - goto out; + { + ret = TRUE; + goto out; + } ret_bsdiff = g_new0 (ContentBsdiff, 1); ret_bsdiff->from_checksum = g_strdup (from);