summaryrefslogtreecommitdiff
path: root/libappstream-builder/plugins/asb-plugin-appdata.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-08-01 20:38:41 +0100
committerRichard Hughes <richard@hughsie.com>2015-08-03 10:36:29 +0100
commit469621479081476b080e9de3a7ba019867b6d51a (patch)
tree90b377184ff4aeac2a675763a1673d00ec562c23 /libappstream-builder/plugins/asb-plugin-appdata.c
parent686e844e22a81bbdc39a27b7cd2cced582808b02 (diff)
downloadappstream-glib-469621479081476b080e9de3a7ba019867b6d51a.tar.gz
Add AsChecksum
Also, partially revert the 'add filename' commit and move the filename to the checksum. This allows us to store the checksum of the firmware file as well as well as the .cab container. This allows us to validate the firmware on devices using fwupd.
Diffstat (limited to 'libappstream-builder/plugins/asb-plugin-appdata.c')
-rw-r--r--libappstream-builder/plugins/asb-plugin-appdata.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libappstream-builder/plugins/asb-plugin-appdata.c b/libappstream-builder/plugins/asb-plugin-appdata.c
index f2d7ef2..0f084fe 100644
--- a/libappstream-builder/plugins/asb-plugin-appdata.c
+++ b/libappstream-builder/plugins/asb-plugin-appdata.c
@@ -303,9 +303,9 @@ asb_plugin_process_app (AsbPlugin *plugin,
/* get possible sources */
if (asb_package_get_kind (pkg) == ASB_PACKAGE_KIND_FIRMWARE) {
- appdata_filename = g_strdup_printf ("%s/%s.metainfo.xml",
- tmpdir,
- as_app_get_metadata_item (AS_APP (app), "FirmwareBasename"));
+ appdata_filename = g_build_filename (tmpdir,
+ as_app_get_metadata_item (AS_APP (app), "MetainfoBasename"),
+ NULL);
} else {
_cleanup_free_ gchar *appdata_basename = NULL;
appdata_basename = asb_plugin_appdata_get_fn_for_app (AS_APP (app));