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:
parent
11ba9056ea
commit
cac92f62c4
|
|
@ -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)))
|
||||
{
|
||||
ret = TRUE;
|
||||
goto out;
|
||||
}
|
||||
|
||||
ret_bsdiff = g_new0 (ContentBsdiff, 1);
|
||||
ret_bsdiff->from_checksum = g_strdup (from);
|
||||
|
|
|
|||
Loading…
Reference in New Issue