pull: add new switch option --disable-static-deltas
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
1 parent
f6d16a6d95
commit
45cb5b5f42
4 files changed
+10
-2
No files matched your search
@@ -1956,7 +1956,7 @@ ostree_repo_pull_with_options (OstreeRepo *self,
|
||||
}
|
||||
|
||||
additional_metadata = g_variant_get_child_value (pull_data->summary, 1);
|
||||
deltas = g_variant_lookup_value (additional_metadata, "ostree.static-deltas", G_VARIANT_TYPE ("a{sv}"));
|
||||
deltas = g_variant_lookup_value (additional_metadata, OSTREE_SUMMARY_STATIC_DELTAS, G_VARIANT_TYPE ("a{sv}"));
|
||||
n = deltas ? g_variant_n_children (deltas) : 0;
|
||||
for (i = 0; i < n; i++)
|
||||
{
|
||||
|
||||
@@ -29,6 +29,8 @@ G_BEGIN_DECLS
|
||||
/* 1 byte for object type, 32 bytes for checksum */
|
||||
#define OSTREE_STATIC_DELTA_OBJTYPE_CSUM_LEN 33
|
||||
|
||||
#define OSTREE_SUMMARY_STATIC_DELTAS "ostree.static-deltas"
|
||||
|
||||
/**
|
||||
* OSTREE_STATIC_DELTA_PART_PAYLOAD_FORMAT_V0:
|
||||
*
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
#include "ostree-repo-file.h"
|
||||
#include "ostree-repo-file-enumerator.h"
|
||||
#include "ostree-gpg-verifier.h"
|
||||
#include "ostree-repo-static-delta-private.h"
|
||||
|
||||
#include <locale.h>
|
||||
#include <glib/gstdio.h>
|
||||
@@ -3668,7 +3669,7 @@ ostree_repo_regenerate_summary (OstreeRepo *self,
|
||||
g_variant_dict_insert_value (&deltas_builder, delta_names->pdata[i], ot_gvariant_new_bytearray (csum, 32));
|
||||
}
|
||||
|
||||
g_variant_dict_insert_value (&additional_metadata_builder, "ostree.static-deltas", g_variant_dict_end (&deltas_builder));
|
||||
g_variant_dict_insert_value (&additional_metadata_builder, OSTREE_SUMMARY_STATIC_DELTAS, g_variant_dict_end (&deltas_builder));
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user