From 69d7474bcdb9bc2e418f67662dcfcd482e04b488 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 26 Sep 2017 23:24:18 +0200 Subject: [PATCH] Don't lock the system repo when pulling to a child repo This causes permission denied when installing to the system repo using the helper. --- common/flatpak-dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/flatpak-dir.c b/common/flatpak-dir.c index 856c4104..a616a013 100644 --- a/common/flatpak-dir.c +++ b/common/flatpak-dir.c @@ -2914,7 +2914,7 @@ flatpak_dir_pull (FlatpakDir *self, * and 2) during the transaction commit objects that not yet have a ref to the * could be considered unreachable. */ - if (!flatpak_dir_repo_lock (self, &lock, LOCK_SH, cancellable, error)) + if (repo == NULL && !flatpak_dir_repo_lock (self, &lock, LOCK_SH, cancellable, error)) return FALSE; if (flatpak_dir_get_remote_oci (self, repository))