[ostree] static-delta: do not fail compilation with big files



commit cac92f62c478288c50b401562d3d3c9baec8e71d
Author: Giuseppe Scrivano <gscrivan redhat com>
Date:   Tue Jul 28 12:28:25 2015 +0200

    static-delta: do not fail compilation with big files
    
    Just skip the bsdiff compression instead of failing the operation.
    
    Signed-off-by: Giuseppe Scrivano <gscrivan redhat com>

 .../ostree-repo-static-delta-compilation.c         |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/libostree/ostree-repo-static-delta-compilation.c 
b/src/libostree/ostree-repo-static-delta-compilation.c
index 760b563..6f1513c 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]