[gnome-software] packagekit: Fix UNAVAILABLE vs UNKNOWN state confusion
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] packagekit: Fix UNAVAILABLE vs UNKNOWN state confusion
- Date: Fri, 16 Feb 2018 09:25:54 +0000 (UTC)
commit be2b5970a3e1de08d59681b9c15b88d7cc4ce53e
Author: Kalev Lember <klember redhat com>
Date: Fri Feb 16 08:54:20 2018 +0100
packagekit: Fix UNAVAILABLE vs UNKNOWN state confusion
Don't mark apps we can't find in the repos as UNAVAILABLE as this state
is for apps that we _do_ find in the repos, but the repo is disabled
(but metadata_enabled=1 so it's searchable).
Instead, leave these in UNKNOWN state so they don't show up in the UI.
This fixes apps we have in the appstream metadata (such as Google Chrome
on Fedora), but not in any available repos to correctly not show.
This should also help with
https://bugzilla.redhat.com/show_bug.cgi?id=1464139
plugins/packagekit/packagekit-common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/packagekit/packagekit-common.c b/plugins/packagekit/packagekit-common.c
index b03c3832..52007e4b 100644
--- a/plugins/packagekit/packagekit-common.c
+++ b/plugins/packagekit/packagekit-common.c
@@ -351,7 +351,7 @@ gs_plugin_packagekit_resolve_packages_app (GsPlugin *plugin,
/* we have less packages returned than source packages */
tmp = gs_app_to_string (app);
g_debug ("Failed to find all packages for:\n%s", tmp);
- gs_app_set_state (app, AS_APP_STATE_UNAVAILABLE);
+ gs_app_set_state (app, AS_APP_STATE_UNKNOWN);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]