Commit ea74b212 authored by Richard Hughes's avatar Richard Hughes
Browse files

Never show 'Unknown' in the package history listbox

parent 3e249a85
......@@ -113,9 +113,17 @@ gs_plugin_packagekit_refine_add_history (GsApp *app, GVariant *dict)
gs_app_set_state (history, GS_APP_STATE_UPDATABLE);
ret = FALSE;
/* we have nothing useful to show for this item */
if (!ret) {
g_debug ("ignoring history kind: %s",
pk_info_enum_to_string (info_enum));
goto out;
/* set the history time and date */
ret = g_variant_lookup (dict, "timestamp", "t", &timestamp);
g_assert (ret);
......@@ -128,10 +136,11 @@ gs_plugin_packagekit_refine_add_history (GsApp *app, GVariant *dict)
/* add the package to the main application */
gs_app_add_history (app, history);
g_object_unref (history);
/* use the last event as approximation of the package timestamp */
gs_app_set_install_date (app, timestamp);
g_object_unref (history);
static gboolean
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment