From 4ba65e69d0b643c1984d1ad0405f8adfb9b38d68 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 1 Sep 2021 21:10:08 +0200 Subject: [PATCH] Resolves: #1995817 (gs-updates-section: Check also dependencies' download size) --- gnome-software.spec | 6 +++++- rhbug1995817-fix-updates-page-button.patch | 14 ++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 rhbug1995817-fix-updates-page-button.patch diff --git a/gnome-software.spec b/gnome-software.spec index 64181c8..58b6ccf 100644 --- a/gnome-software.spec +++ b/gnome-software.spec @@ -12,7 +12,7 @@ Name: gnome-software Version: 41~beta -Release: 2%{?dist} +Release: 3%{?dist} Summary: A software center for GNOME License: GPLv2+ @@ -20,6 +20,7 @@ URL: https://wiki.gnome.org/Apps/Software Source0: https://download.gnome.org/sources/gnome-software/41/%{name}-%{tarball_version}.tar.xz Patch01: 0001-crash-with-broken-theme.patch +Patch02: rhbug1995817-fix-updates-page-button.patch BuildRequires: appstream-devel >= %{appstream_version} BuildRequires: gcc @@ -198,6 +199,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop %{_datadir}/gtk-doc/html/gnome-software %changelog +* Wed Sep 01 2021 Milan Crha - 41~beta-3 +- Resolves: #1995817 (gs-updates-section: Check also dependencies' download size) + * Tue Aug 24 2021 Kalev Lember - 41~beta-2 - Enable parental controls support diff --git a/rhbug1995817-fix-updates-page-button.patch b/rhbug1995817-fix-updates-page-button.patch new file mode 100644 index 0000000..b89b549 --- /dev/null +++ b/rhbug1995817-fix-updates-page-button.patch @@ -0,0 +1,14 @@ +diff --git a/src/gs-updates-section.c b/src/gs-updates-section.c +index 0f41ba66..fa050513 100644 +--- a/src/gs-updates-section.c ++++ b/src/gs-updates-section.c +@@ -293,6 +293,9 @@ _all_offline_updates_downloaded (GsUpdatesSection *self) + guint64 size = gs_app_get_size_download (app); + if (size != 0) + return FALSE; ++ size = gs_app_get_size_download_dependencies (app); ++ if (size != 0) ++ return FALSE; + } + + return TRUE;