switch: Always allow chronological downgrades

Ideally we'd have something a bit more strict, but...without
downloading the parentage, this is all we can do at the moment.
This commit is contained in:
Colin Walters 2014-04-04 16:51:37 -04:00
parent 76a976817f
commit 4bd8b5c850
1 changed files with 6 additions and 1 deletions

View File

@ -120,7 +120,12 @@ ot_admin_builtin_switch (int argc, char **argv, OstreeSysroot *sysroot, GCancell
in_status_line = FALSE; in_status_line = FALSE;
} }
if (!ostree_sysroot_upgrader_pull (upgrader, 0, 0, progress, &changed, /* Always allow older...there's not going to be a chronological
* relationship necessarily.
*/
if (!ostree_sysroot_upgrader_pull (upgrader, 0,
OSTREE_SYSROOT_UPGRADER_PULL_FLAGS_ALLOW_OLDER,
progress, &changed,
cancellable, error)) cancellable, error))
goto out; goto out;