pull: Don't save into cache passed in GByte summaries
authorAlexander Larsson <alexl@redhat.com>
Tue, 3 Nov 2020 10:48:33 +0000 (11:48 +0100)
committerAlexander Larsson <alexl@redhat.com>
Tue, 3 Nov 2020 10:48:33 +0000 (11:48 +0100)
commit52463686afcf6ebca446c40dd32b3a7aa1e9ad48
tree1793ec8d0930d0dcecb250ee93269971231fbabd
parent64e09f46b84f7dbbd960c05332583fb60f73233b
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.
src/libostree/ostree-repo-pull.c