mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-03 14:47:10 -05:00
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:
committed by
Alexander Larsson
parent
a3eaa36ce4
commit
f647a5ea79
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user