diff options
author | Alexander Larsson <alexl@redhat.com> | 2016-04-19 13:31:55 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2016-04-19 13:31:55 +0200 |
commit | 1c1bc4acca467bdb15e8c75f3ef3f802d9cafea0 (patch) | |
tree | 14b0be70e44041df33629047371fc82c9f03e80c /lib | |
parent | 18bb0868e9e9ca169e1fcdf8a2a9a3fe54dcef5b (diff) | |
download | xdg-app-1c1bc4acca467bdb15e8c75f3ef3f802d9cafea0.tar.gz |
common: Move xdg_app_dir_pull_from_bundle to xdg_app_pull_from_bundle
The only difference is it takes an OstreeRepo, not a XdgAppDir, so we
can use it at a lower level too.
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, |