trivial: libfwupd: correct building URI path

when run on Windows the following is emitted:

```
changing metadata URI from https://cdn.fwupd.org/downloads/firmware.xml.gz to
https://cdn.fwupd.org/downloads\firmware-02681-stable.xml.gz
```
This commit is contained in:
Mario Limonciello 2021-12-14 14:13:48 -06:00 committed by Mario Limonciello
parent e332a3683e
commit 27ac4f1fc2

View File

@ -1148,7 +1148,7 @@ fwupd_remote_load_signature_jcat(FwupdRemote *self, JcatFile *jcat_file, GError
/* replace the URI if required */ /* replace the URI if required */
baseuri = g_path_get_dirname(priv->metadata_uri); baseuri = g_path_get_dirname(priv->metadata_uri);
metadata_uri = g_build_filename(baseuri, id, NULL); metadata_uri = g_build_path("/", baseuri, id, NULL);
if (g_strcmp0(metadata_uri, priv->metadata_uri) != 0) { if (g_strcmp0(metadata_uri, priv->metadata_uri) != 0) {
g_debug("changing metadata URI from %s to %s", priv->metadata_uri, metadata_uri); g_debug("changing metadata URI from %s to %s", priv->metadata_uri, metadata_uri);
g_free(priv->metadata_uri); g_free(priv->metadata_uri);