[gnome-software/gnome-3-34] rpm-ostree: Avoid downgrade error when doing distro upgrade



commit f6227489a1ad82e91a19e3393d3bd06d5736c603
Author: Kalev Lember <klember redhat com>
Date:   Wed Jan 8 14:57:40 2020 +0100

    rpm-ostree: Avoid downgrade error when doing distro upgrade
    
    Pass 'allow-downgrade' to rpm-ostree to avoid erroring out when doing a
    distro upgrade from a chronologically newer Fedora compose (but older
    distro version) to a chronologically older, but newer distro version.

 plugins/rpm-ostree/gs-plugin-rpm-ostree.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/rpm-ostree/gs-plugin-rpm-ostree.c b/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
index 8b0578a7..8e8da6f7 100644
--- a/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
+++ b/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
  *
- * Copyright (C) 2017-2019 Kalev Lember <klember redhat com>
+ * Copyright (C) 2017-2020 Kalev Lember <klember redhat com>
  *
  * SPDX-License-Identifier: GPL-2.0+
  */
@@ -1412,7 +1412,7 @@ gs_plugin_app_upgrade_download (GsPlugin *plugin,
                                       gs_app_get_version (app));
 
        options = make_rpmostree_options_variant (FALSE,  /* reboot */
-                                                 FALSE,  /* allow-downgrade */
+                                                 TRUE,   /* allow-downgrade */
                                                  FALSE,  /* cache-only */
                                                  TRUE,   /* download-only */
                                                  FALSE,  /* skip-purge */


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