[gnome-software] trivial: Set extra metadata for debugging new packages
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Set extra metadata for debugging new packages
- Date: Sun, 27 Oct 2013 20:49:01 +0000 (UTC)
commit a32a5d10e88efe60117a859e9ffc6e06901ec3ae
Author: Richard Hughes <richard hughsie com>
Date: Sun Oct 27 20:01:58 2013 +0000
trivial: Set extra metadata for debugging new packages
src/plugins/gs-plugin-packagekit-refine.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/gs-plugin-packagekit-refine.c b/src/plugins/gs-plugin-packagekit-refine.c
index 0a2490d..e09d324 100644
--- a/src/plugins/gs-plugin-packagekit-refine.c
+++ b/src/plugins/gs-plugin-packagekit-refine.c
@@ -147,6 +147,8 @@ gs_plugin_packagekit_resolve_packages_app (GPtrArray *packages,
if (gs_app_get_version (app) == NULL)
gs_app_set_version (app,
pk_package_get_version (package));
+ gs_app_set_metadata (app, "PackageKit::Summary",
+ pk_package_get_summary (package));
}
}
}
@@ -453,10 +455,9 @@ gs_plugin_packagekit_refine_details_app (GsPlugin *plugin,
pk_details_get_url (details));
}
size += pk_details_get_size (details);
- if (gs_app_get_description (app) == NULL &&
- g_getenv ("GNOME_SOFTWARE_USE_PKG_DESCRIPTIONS") != NULL) {
+ if (gs_app_get_metadata_item (app, "PackageKit::Description") == NULL) {
desc = gs_pk_format_desc (pk_details_get_description (details));
- gs_app_set_description (app, desc);
+ gs_app_set_metadata (app, "PackageKit::Description", desc);
g_free (desc);
}
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]