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




commit 97ab46e23c26b6cd6fd114a74d04c5d26415298d
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]