From cd13e9e21dc6931d0d7c485ba9d952eff1c19c3a Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 25 Feb 2016 15:41:37 +0100 Subject: [PATCH] bundles: Don't lock during pull There is no need for that --- app/xdg-app-builtins-install.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/xdg-app-builtins-install.c b/app/xdg-app-builtins-install.c index 12c51eec..ea7b3ab5 100644 --- a/app/xdg-app-builtins-install.c +++ b/app/xdg-app-builtins-install.c @@ -141,10 +141,6 @@ install_bundle (XdgAppDir *dir, if (metadata == NULL) return FALSE; - if (!xdg_app_dir_lock (dir, &lock, - cancellable, error)) - return FALSE; - if (!g_variant_lookup (metadata, "ref", "s", &ref)) return xdg_app_fail (error, "Invalid bundle, no ref in metadata"); @@ -201,6 +197,10 @@ install_bundle (XdgAppDir *dir, error)) goto out; + if (!xdg_app_dir_lock (dir, &lock, + cancellable, error)) + return FALSE; + if (!g_file_make_directory_with_parents (deploy_base, cancellable, error)) goto out;