diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/xdg-app-installation.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/lib/xdg-app-installation.c b/lib/xdg-app-installation.c index d97f7c0..c6ab372 100644 --- a/lib/xdg-app-installation.c +++ b/lib/xdg-app-installation.c @@ -868,13 +868,16 @@ xdg_app_installation_install_bundle (XdgAppInstallation *self, /* Pull, prune, etc are not threadsafe, so we work on a copy */ dir_clone = xdg_app_dir_clone (priv->dir); - if (!xdg_app_dir_pull_from_bundle (dir_clone, - file, - remote, - ref, - gpg_data != NULL, - cancellable, - error)) + if (!xdg_app_dir_ensure_repo (dir_clone, cancellable, error)) + goto out; + + if (!xdg_app_pull_from_bundle (xdg_app_dir_get_repo (dir_clone), + file, + remote, + ref, + gpg_data != NULL, + cancellable, + error)) goto out; if (!xdg_app_dir_lock (dir_clone, &lock, |