From d659778466074ca5016b80319dfd0c3df39ec1e4 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 16 Feb 2022 11:33:24 +0100 Subject: [PATCH] gs-fedora-third-party: Let the 'list' call fail only when the call itself failed Like with other functions, let it fail only if a call to the 'fedora-third-party' really failed. It's not a problem when no repo is configured. Closes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1644 --- lib/gs-fedora-third-party.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gs-fedora-third-party.c b/lib/gs-fedora-third-party.c index 98f16e70c..19060fd5e 100644 --- a/lib/gs-fedora-third-party.c +++ b/lib/gs-fedora-third-party.c @@ -465,7 +465,7 @@ gs_fedora_third_party_list_sync (GsFedoraThirdParty *self, } self->last_update = g_get_real_time () / G_USEC_PER_SEC; } - success = self->repos != NULL && g_hash_table_size (self->repos) != 0; + success = self->repos != NULL; if (success && out_repos) *out_repos = g_hash_table_ref (self->repos); g_mutex_unlock (&self->lock); -- GitLab