Do not copy the origin from the new metadata file

If the system has multiple remotes enabled then simply setting the origin to
the 'last-updated' source is confusing.
This commit is contained in:
Richard Hughes 2017-06-02 12:25:52 +01:00
parent 1b50d960f2
commit d4bdfd6883

View File

@ -1349,7 +1349,7 @@ fu_main_daemon_update_metadata (FuMainPrivate *priv, const gchar *remote_id,
/* save the new file */
as_store_set_api_version (priv->store, 0.9);
as_store_set_origin (priv->store, as_store_get_origin (store));
as_store_set_origin (priv->store, NULL);
if (!as_store_to_file (priv->store, file,
AS_NODE_TO_XML_FLAG_ADD_HEADER |
AS_NODE_TO_XML_FLAG_FORMAT_MULTILINE |