upgrade: Support --allow-downgrade again
This was unintentially dropped with the OstreeSysrootUpgrader rebase.
This commit is contained in:
1 parent
913337c557
commit
5bca569506
2 files changed
+10
-2
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user