diff options
author | Richard Hughes <richard@hughsie.com> | 2015-01-24 20:45:35 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2015-01-24 20:45:40 +0000 |
commit | f943c04292617cf4e8db12bf6b18f0d775cd2e48 (patch) | |
tree | a18c203f8d1f0c9f7ed38df4e9062fc808b2cb2c /libappstream-builder/plugins/asb-plugin-appdata.c | |
parent | 920d939aeaf2c6f8bb625742049df0d4ec8792d3 (diff) | |
download | appstream-glib-f943c04292617cf4e8db12bf6b18f0d775cd2e48.tar.gz |
Make the failed AppStream metadata optional
Also, clean up a lot of booleans into one sane bitfield.
The libappstream-builder library isn't API stable and has no external users,
so we can move things around a bit without worrying.
Diffstat (limited to 'libappstream-builder/plugins/asb-plugin-appdata.c')
-rw-r--r-- | libappstream-builder/plugins/asb-plugin-appdata.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libappstream-builder/plugins/asb-plugin-appdata.c b/libappstream-builder/plugins/asb-plugin-appdata.c index 41d5c0e..06eea1c 100644 --- a/libappstream-builder/plugins/asb-plugin-appdata.c +++ b/libappstream-builder/plugins/asb-plugin-appdata.c @@ -1,6 +1,6 @@ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- * - * Copyright (C) 2014 Richard Hughes <richard@hughsie.com> + * Copyright (C) 2014-2015 Richard Hughes <richard@hughsie.com> * * Licensed under the GNU Lesser General Public License Version 2.1 * @@ -199,7 +199,7 @@ asb_plugin_appdata_load_url (AsbPlugin *plugin, as_app_get_id_filename (AS_APP (app)), basename); if (!g_file_test (cache_filename, G_FILE_TEST_EXISTS)) { - if (asb_context_get_no_net (plugin->ctx)) { + if (asb_context_get_flag (plugin->ctx, ASB_CONTEXT_FLAG_NO_NETWORK)) { asb_package_log (asb_app_get_package (app), ASB_PACKAGE_LOG_LEVEL_WARNING, "Could not download %s as no network", url); |