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.
This commit is contained in:
Alexander Larsson
2017-09-26 23:24:18 +02:00
parent de26d28a17
commit 69d7474bcd

View File

@@ -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))