diff options
author | Colin Walters <walters@verbum.org> | 2017-01-05 11:29:41 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-02-27 20:57:23 +0000 |
commit | 36b28cb4d2126320d07029432abd2327b442a126 (patch) | |
tree | 59cd0895afc77a06fc7f4463a41a87b1c60d93eb /src/libostree/ostree-sysroot-upgrader.c | |
parent | 2c326d705eec5f379a01ba2b584986548473d6c2 (diff) | |
download | ostree-36b28cb4d2126320d07029432abd2327b442a126.tar.gz |
upgrade: Add support for --pull-only and --deploy-only
This makes it easier to script downloading updates in the background,
and only do deployments just before rebooting.
Partially addresses https://github.com/ostreedev/ostree/issues/640
Closes: #642
Approved by: jlebon
Diffstat (limited to 'src/libostree/ostree-sysroot-upgrader.c')
-rw-r--r-- | src/libostree/ostree-sysroot-upgrader.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libostree/ostree-sysroot-upgrader.c b/src/libostree/ostree-sysroot-upgrader.c index daf2445c..232f8435 100644 --- a/src/libostree/ostree-sysroot-upgrader.c +++ b/src/libostree/ostree-sysroot-upgrader.c @@ -552,7 +552,8 @@ ostree_sysroot_upgrader_pull_one_dir (OstreeSysrootUpgrader *self, g_assert (self->merge_deployment); from_revision = ostree_deployment_get_csum (self->merge_deployment); - if (self->origin_remote) + if (self->origin_remote && + (upgrader_flags & OSTREE_SYSROOT_UPGRADER_PULL_FLAGS_SYNTHETIC) == 0) { if (!ostree_repo_pull_one_dir (repo, self->origin_remote, dir_to_pull, refs_to_fetch, flags, progress, |