Resolves: #1995817 (gs-updates-section: Check also dependencies' download size)

This commit is contained in:
Milan Crha 2021-09-01 21:10:08 +02:00
parent 94b79ff886
commit 4ba65e69d0
2 changed files with 19 additions and 1 deletions

View File

@ -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 <mcrha@redhat.com> - 41~beta-3
- Resolves: #1995817 (gs-updates-section: Check also dependencies' download size)
* Tue Aug 24 2021 Kalev Lember <klember@redhat.com> - 41~beta-2
- Enable parental controls support

View File

@ -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;