diff options
author | Alexander Larsson <alexl@redhat.com> | 2016-02-25 15:41:37 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2016-02-25 15:41:37 +0100 |
commit | cd13e9e21dc6931d0d7c485ba9d952eff1c19c3a (patch) | |
tree | 6efaf6988f815d38daa2e68bc3363a61e28bcfac /app | |
parent | aefb4b6b82b81fc68103628ae7ed86da9153d1bb (diff) | |
download | xdg-app-cd13e9e21dc6931d0d7c485ba9d952eff1c19c3a.tar.gz |
bundles: Don't lock during pull
There is no need for that
Diffstat (limited to 'app')
-rw-r--r-- | app/xdg-app-builtins-install.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/xdg-app-builtins-install.c b/app/xdg-app-builtins-install.c index 12c51ee..ea7b3ab 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; |