summaryrefslogtreecommitdiff
path: root/app/xdg-app-builtins-update.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/xdg-app-builtins-update.c')
-rw-r--r--app/xdg-app-builtins-update.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/app/xdg-app-builtins-update.c b/app/xdg-app-builtins-update.c
index 4280287..70364cd 100644
--- a/app/xdg-app-builtins-update.c
+++ b/app/xdg-app-builtins-update.c
@@ -97,18 +97,13 @@ do_update (XdgAppDir* dir,
if (subpaths == NULL)
return FALSE;
- if (!opt_no_pull)
- {
- if (!xdg_app_dir_pull (dir, repository, ref, opt_subpaths ? opt_subpaths : subpaths,
- NULL, cancellable, error))
- return FALSE;
- }
-
- if (!opt_no_deploy)
- {
- if (!xdg_app_dir_deploy_update (dir, ref, repository, opt_commit, cancellable, error))
- return FALSE;
- }
+ if (!xdg_app_dir_update (dir,
+ opt_no_pull,
+ opt_no_deploy,
+ ref, repository, opt_commit, opt_subpaths,
+ NULL,
+ cancellable, error))
+ return FALSE;
return TRUE;
}