After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 763855 - summary cache broke remote refs for readonly repo
summary cache broke remote refs for readonly repo
Status: RESOLVED FIXED
Product: ostree
Classification: Infrastructure
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: OSTree maintainer(s)
OSTree maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2016-03-18 09:07 UTC by Alexander Larsson
Modified: 2016-03-18 16:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Don't fail "ostree remote refs" if writing the summary cache is not permitted (1.73 KB, patch)
2016-03-18 09:07 UTC, Alexander Larsson
none Details | Review

Description Alexander Larsson 2016-03-18 09:07:18 UTC
ostree remote refs now fails hard for a system repo, as it can't write the summary file, but this used to work. Lets just ignore the permissions error so this works again.
Comment 1 Alexander Larsson 2016-03-18 09:07:34 UTC
Created attachment 324240 [details] [review]
Don't fail "ostree remote refs" if writing the summary cache is not permitted

It used to be allowed to run something like "ostree remote refs" on
a read-only (e.g. system) repo. However, the summary cache caused that to
break. This commit just makes it not save the cache if we get some kind
of permission error when writing it. It'll still work, even without the
cache.
Comment 2 Giuseppe Scrivano 2016-03-18 11:02:13 UTC
the patch looks fine
Comment 3 Alexander Larsson 2016-03-18 16:36:21 UTC
Attachment 324240 [details] pushed as cb60de0 - Don't fail "ostree remote refs" if writing the summary cache is not permitted