remote-modify: Clear cached summaries when the remote is modified.

This fixed some issues in the test where changing the url cause the
cache:ing to fail to update due to the mtimes being to new in combination
with the HTTP If-Modified-Since use.
This commit is contained in:
Alexander Larsson
2020-11-03 12:03:29 +01:00
committed by Alexander Larsson
parent a3eaa36ce4
commit f647a5ea79

View File

@@ -14129,6 +14129,10 @@ flatpak_dir_modify_remote (FlatpakDir *self,
cancellable, error))
return FALSE;
/* If we e.g. changed url or gpg config the cached summary may be invalid */
if (!flatpak_dir_remote_clear_cached_summary (self, remote_name, cancellable, error))
return FALSE;
return TRUE;
}
@@ -14199,6 +14203,10 @@ flatpak_dir_modify_remote (FlatpakDir *self,
}
}
/* If we e.g. changed url or gpg config the cached summary may be invalid */
if (!flatpak_dir_remote_clear_cached_summary (self, remote_name, cancellable, error))
return FALSE;
if (!flatpak_dir_mark_changed (self, error))
return FALSE;