fetch_summary_with_options: Fix n-network-retries option parsing
authorAlexander Larsson <alexl@redhat.com>
Wed, 16 Sep 2020 10:09:41 +0000 (12:09 +0200)
committerAlexander Larsson <alexl@redhat.com>
Thu, 8 Oct 2020 12:09:16 +0000 (14:09 +0200)
"&u" is not a valid gvariant format string, it should just be "u".

src/libostree/ostree-repo-pull.c

index ab32b54e7f23936e829751d44d95ee6a605dfbed..58c805434ce3f9ec824afca63938cfc23c8554a9 100644 (file)
@@ -6127,7 +6127,7 @@ ostree_repo_remote_fetch_summary_with_options (OstreeRepo    *self,
       (void) g_variant_lookup (options, "override-url", "&s", &url_override);
       (void) g_variant_lookup (options, "http-headers", "@a(ss)", &extra_headers);
       (void) g_variant_lookup (options, "append-user-agent", "&s", &append_user_agent);
-      (void) g_variant_lookup (options, "n-network-retries", "&u", &n_network_retries);
+      (void) g_variant_lookup (options, "n-network-retries", "u", &n_network_retries);
     }
 
   if (!ostree_repo_remote_get_gpg_verify_summary (self, name, &gpg_verify_summary, error))