static-delta: do not fail compilation with big files
authorGiuseppe Scrivano <gscrivan@redhat.com>
Tue, 28 Jul 2015 10:28:25 +0000 (12:28 +0200)
committerGiuseppe Scrivano <gscrivan@redhat.com>
Tue, 28 Jul 2015 10:28:25 +0000 (12:28 +0200)
Just skip the bsdiff compression instead of failing the operation.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
src/libostree/ostree-repo-static-delta-compilation.c

index 760b56333d8bfc92e536f95546d80ee7d880ce7c..6f1513c9b92bf7b005c5b1328da8f044a0ca8cda 100644 (file)
@@ -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);