Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
pureos-store
Commits
ea74b212
Commit
ea74b212
authored
Sep 24, 2013
by
Richard Hughes
Browse files
Never show 'Unknown' in the package history listbox
parent
3e249a85
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/gs-plugin-packagekit-history.c
View file @
ea74b212
...
...
@@ -113,9 +113,17 @@ gs_plugin_packagekit_refine_add_history (GsApp *app, GVariant *dict)
gs_app_set_state
(
history
,
GS_APP_STATE_UPDATABLE
);
break
;
default:
ret
=
FALSE
;
break
;
}
/* 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
);
out:
g_object_unref
(
history
);
}
static
gboolean
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment