bundles: Don't lock during pull

There is no need for that
This commit is contained in:
Alexander Larsson
2016-02-25 15:41:37 +01:00
parent aefb4b6b82
commit cd13e9e21d

View File

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