diff options
author | Alexander Larsson <alexl@redhat.com> | 2015-09-10 20:54:43 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2015-11-10 08:56:12 +0100 |
commit | ccb77d3bd83843f9ccd4cdb8dd288fa0489ae3ee (patch) | |
tree | 266e8ae4989bf61ca84238e1a72abd0e68add7a6 /src/ostree/ot-builtin-static-delta.c | |
parent | 11a79220e2b5789ed6d835cd3d1374be306f2398 (diff) | |
download | ostree-ccb77d3bd83843f9ccd4cdb8dd288fa0489ae3ee.tar.gz |
static-deltas generate: Add --inline option to CLI tool
Diffstat (limited to 'src/ostree/ot-builtin-static-delta.c')
-rw-r--r-- | src/ostree/ot-builtin-static-delta.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ostree/ot-builtin-static-delta.c b/src/ostree/ot-builtin-static-delta.c index abb0b635..437e24f9 100644 --- a/src/ostree/ot-builtin-static-delta.c +++ b/src/ostree/ot-builtin-static-delta.c @@ -32,6 +32,7 @@ static char *opt_min_fallback_size; static char *opt_max_bsdiff_size; static char *opt_max_chunk_size; static gboolean opt_empty; +static gboolean opt_inline; static gboolean opt_disable_bsdiff; #define BUILTINPROTO(name) static gboolean ot_static_delta_builtin_ ## name (int argc, char **argv, GCancellable *cancellable, GError **error) @@ -53,6 +54,7 @@ static OstreeCommand static_delta_subcommands[] = { static GOptionEntry generate_options[] = { { "from", 0, 0, G_OPTION_ARG_STRING, &opt_from_rev, "Create delta from revision REV", "REV" }, { "empty", 0, 0, G_OPTION_ARG_NONE, &opt_empty, "Create delta from scratch", NULL }, + { "inline", 0, 0, G_OPTION_ARG_NONE, &opt_inline, "Inline delta parts into main delta", NULL }, { "to", 0, 0, G_OPTION_ARG_STRING, &opt_to_rev, "Create delta to revision REV", "REV" }, { "disable-bsdiff", 0, 0, G_OPTION_ARG_NONE, &opt_disable_bsdiff, "Disable use of bsdiff", NULL }, { "min-fallback-size", 0, 0, G_OPTION_ARG_STRING, &opt_min_fallback_size, "Minimum uncompressed size in megabytes for individual HTTP request", NULL}, @@ -201,6 +203,9 @@ ot_static_delta_builtin_generate (int argc, char **argv, GCancellable *cancellab if (opt_disable_bsdiff) g_variant_builder_add (parambuilder, "{sv}", "bsdiff-enabled", g_variant_new_boolean (FALSE)); + if (opt_inline) + g_variant_builder_add (parambuilder, "{sv}", + "inline-parts", g_variant_new_boolean (TRUE)); g_variant_builder_add (parambuilder, "{sv}", "verbose", g_variant_new_boolean (TRUE)); |