trivial: Store .xz files with the correct filename

This commit is contained in:
Richard Hughes 2022-10-21 14:08:46 +01:00
parent fab1066314
commit c837491344

View File

@ -562,8 +562,13 @@ fwupd_remote_setup(FwupdRemote *self, GError **error)
return FALSE;
}
/* set cache to /var/lib... */
if (g_str_has_suffix(priv->metadata_uri, ".xml.xz")) {
filename_cache =
g_build_filename(priv->remotes_dir, priv->id, "metadata.xml.xz", NULL);
} else {
filename_cache =
g_build_filename(priv->remotes_dir, priv->id, "metadata.xml.gz", NULL);
}
fwupd_remote_set_filename_cache(self, filename_cache);
}