[gnome-software/1357-improve-presentation-of-os-upgrade-banners: 11/12] gs-plugin-fedora-pkgdb-collections: Set upgrade install and download sizes as unknowable




commit c45adc7d23b08553f1075704fc4a7238b3002e1e
Author: Milan Crha <mcrha redhat com>
Date:   Tue Aug 10 15:07:38 2021 +0200

    gs-plugin-fedora-pkgdb-collections: Set upgrade install and download sizes as unknowable
    
    Better to not have the sizes, than to claim false values.

 plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c 
b/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
index 78b293fe8..997f666fb 100644
--- a/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
+++ b/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
@@ -284,8 +284,8 @@ _create_upgrade_from_info (GsPlugin *plugin, PkgdbItem *item)
                            /* TRANSLATORS: this is a title for Fedora distro upgrades */
                            _("Upgrade for the latest features, performance and stability improvements."));
        gs_app_set_version (app, app_version);
-       gs_app_set_size_installed (app, 1024 * 1024 * 1024); /* estimate */
-       gs_app_set_size_download (app, 256 * 1024 * 1024); /* estimate */
+       gs_app_set_size_installed (app, GS_APP_SIZE_UNKNOWABLE);
+       gs_app_set_size_download (app, GS_APP_SIZE_UNKNOWABLE);
        gs_app_set_license (app, GS_APP_QUALITY_LOWEST, "LicenseRef-free");
        gs_app_add_quirk (app, GS_APP_QUIRK_NEEDS_REBOOT);
        gs_app_add_quirk (app, GS_APP_QUIRK_PROVENANCE);


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