Don't write to parent repo
authorAlexander Larsson <alexl@redhat.com>
Thu, 29 Mar 2018 13:19:33 +0000 (15:19 +0200)
committerSimon McVittie <smcv@debian.org>
Tue, 17 Apr 2018 08:06:42 +0000 (09:06 +0100)
commit58f9bc0db91a12ec17f1a38da69aae19ba80ee40
tree45163d0572d985ceda6ee98a578f6f3debbfd84e
parentf265fce2e0ab81c272977178a2aae059523942a6
Don't write to parent repo

In _try_clone_from_payload_link, don't try to do the clone in the
parent repo, because we don't want to modify that. parent repos are
typically used when you want a shared, immutable base.

For example in flatpak, the parent repo is the system repo which you
don't have write access to, so any modification to it will fail with
EACCES, making it impossible to install via the system helper.

Closes: #1524
Approved by: cgwalters
Applied-upstream: 2018.5, commit:28c7bc6d0e153a0b07bdb82d25473a490765067f

Gbp-Pq: Name Don-t-write-to-parent-repo.patch
src/libostree/ostree-repo-commit.c