[ostree] switch: Always allow chronological downgrades



commit 4bd8b5c8508c2b165edd998282c82e2b29a99418
Author: Colin Walters <walters verbum org>
Date:   Fri Apr 4 16:51:37 2014 -0400

    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.

 src/ostree/ot-admin-builtin-switch.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/ostree/ot-admin-builtin-switch.c b/src/ostree/ot-admin-builtin-switch.c
index ad65263..292532f 100644
--- a/src/ostree/ot-admin-builtin-switch.c
+++ b/src/ostree/ot-admin-builtin-switch.c
@@ -120,7 +120,12 @@ ot_admin_builtin_switch (int argc, char **argv, OstreeSysroot *sysroot, GCancell
       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))
     goto out;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]