From: Alexander Larsson Date: Tue, 3 Nov 2020 10:48:33 +0000 (+0100) Subject: pull: Don't save into cache passed in GByte summaries X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~6^2~9^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=52463686afcf6ebca446c40dd32b3a7aa1e9ad48;p=ostree.git pull: Don't save into cache passed in GByte summaries The cache shouldn't be affected by the user passing in some other summary as it may not be the "official one". I ran into this in flatpak where the passed summary was correct, but the re-saving of the cache updated the mtime of the cached file which led to later http If-Modified-Since calls failing to update. --- diff --git a/src/libostree/ostree-repo-pull.c b/src/libostree/ostree-repo-pull.c index da421db3..758c5054 100644 --- a/src/libostree/ostree-repo-pull.c +++ b/src/libostree/ostree-repo-pull.c @@ -4545,7 +4545,7 @@ ostree_repo_pull_with_options (OstreeRepo *self, } } - if (!summary_from_cache && bytes_summary && bytes_sig) + if (!summary_from_cache && bytes_summary && bytes_sig && summary_sig_bytes_v == NULL) { if (!pull_data->remote_repo_local && !_ostree_repo_cache_summary (self,