summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-sysroot-upgrader.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2014-03-31 22:27:34 -0400
committerColin Walters <walters@verbum.org>2014-03-31 22:27:56 -0400
commit5bca5695067333086d8e6ff592e6d00ed578a885 (patch)
tree1f19ffa9e73b01c6862dd2f6a6bc13ac01e4e770 /src/libostree/ostree-sysroot-upgrader.c
parent913337c557d0be9a3b7b7f5251a5d12a33a5a937 (diff)
downloadostree-5bca5695067333086d8e6ff592e6d00ed578a885.tar.gz
upgrade: Support --allow-downgrade again
This was unintentially dropped with the OstreeSysrootUpgrader rebase.
Diffstat (limited to 'src/libostree/ostree-sysroot-upgrader.c')
-rw-r--r--src/libostree/ostree-sysroot-upgrader.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libostree/ostree-sysroot-upgrader.c b/src/libostree/ostree-sysroot-upgrader.c
index c262f2b8..b62f8d46 100644
--- a/src/libostree/ostree-sysroot-upgrader.c
+++ b/src/libostree/ostree-sysroot-upgrader.c
@@ -464,8 +464,11 @@ ostree_sysroot_upgrader_pull (OstreeSysrootUpgrader *self,
}
else
{
+ gboolean allow_older = (upgrader_flags & OSTREE_SYSROOT_UPGRADER_PULL_FLAGS_ALLOW_OLDER) > 0;
+
*out_changed = TRUE;
- if (from_revision)
+
+ if (from_revision && !allow_older)
{
if (!ostree_sysroot_upgrader_check_timestamps (repo, from_revision,
self->new_revision,