aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/vendor.c
diff options
context:
space:
mode:
authorhwspeedy <ns@bigbear.dk>2024-02-28 07:30:34 +0100
committerhwspeedy <ns@bigbear.dk>2024-02-28 07:30:34 +0100
commitd7b80385dea105d99b0e3666bce87c68b5511b54 (patch)
tree6f0533a6ccaca507853dc5cd302f0e034985efac /hardinfo2/vendor.c
parent968f3caf1b2b5a77229943ff76eb7f18778e277d (diff)
ADD Sync blobversion check - only update if new on server
Diffstat (limited to 'hardinfo2/vendor.c')
-rw-r--r--hardinfo2/vendor.c11
1 files changed, 9 insertions, 2 deletions
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),