From d7b80385dea105d99b0e3666bce87c68b5511b54 Mon Sep 17 00:00:00 2001 From: hwspeedy Date: Wed, 28 Feb 2024 07:30:34 +0100 Subject: ADD Sync blobversion check - only update if new on server --- hardinfo2/vendor.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'hardinfo2') diff --git a/hardinfo2/vendor.c b/hardinfo2/vendor.c index fe4c1e59..2031ac44 100644 --- a/hardinfo2/vendor.c +++ b/hardinfo2/vendor.c @@ -207,16 +207,23 @@ static int read_from_vendor_ids(const char *path) { void vendor_init(void) { gchar *path; - static SyncEntry se = { + static SyncEntry se1; + static SyncEntry se2 = { .name = N_("Update vendor list"), .file_name = "vendor.ids", + .optional = TRUE, }; + se1.name = N_("Check Update Version"); + se1.file_name = g_strdup_printf("blobs-update-version.json"); + se1.optional=FALSE; + /* already initialized */ if (vendors) return; DEBUG("initializing vendor list"); - sync_manager_add_entry(&se); + sync_manager_add_entry(&se2); + sync_manager_add_entry(&se1); char *file_search_order[] = { g_build_filename(g_get_user_config_dir(), "hardinfo2", "vendor.ids", NULL), -- cgit v1.2.3