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>
This commit is contained in:
Giuseppe Scrivano 2015-07-28 12:28:25 +02:00
parent 11ba9056ea
commit cac92f62c4
1 changed files with 4 additions and 1 deletions

View File

@ -523,7 +523,10 @@ try_content_bsdiff (OstreeRepo *repo,
/* TODO: make this option configurable. */ /* TODO: make this option configurable. */
if (g_bytes_get_size (tmp_to) + g_bytes_get_size (tmp_from) > (200 * (1 << 20))) 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 = g_new0 (ContentBsdiff, 1);
ret_bsdiff->from_checksum = g_strdup (from); ret_bsdiff->from_checksum = g_strdup (from);