summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-app-inf.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-07-23 13:04:22 +0100
committerRichard Hughes <richard@hughsie.com>2015-07-23 13:04:54 +0100
commitcb91ddd777b019a4bdf51c364c985bc7cd2dccd3 (patch)
treebcbb568f3322d92ffef37ffa252936b7e74b54ed /libappstream-glib/as-app-inf.c
parent9779a36bfbed6921a85a21304f548cff0a229274 (diff)
downloadappstream-glib-cb91ddd777b019a4bdf51c364c985bc7cd2dccd3.tar.gz
Do not parse non-standard sections in .inf files
It makes the story unclear when there are two ways of specifying the location.
Diffstat (limited to 'libappstream-glib/as-app-inf.c')
-rw-r--r--libappstream-glib/as-app-inf.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/libappstream-glib/as-app-inf.c b/libappstream-glib/as-app-inf.c
index 80519e1..c7581c6 100644
--- a/libappstream-glib/as-app-inf.c
+++ b/libappstream-glib/as-app-inf.c
@@ -56,7 +56,6 @@ as_app_parse_inf_file (AsApp *app,
GError **error)
{
guint64 timestamp;
- guint i;
_cleanup_error_free_ GError *error_local = NULL;
_cleanup_free_ gchar *catalog_basename = NULL;
_cleanup_free_ gchar *class_guid = NULL;
@@ -68,7 +67,6 @@ as_app_parse_inf_file (AsApp *app,
_cleanup_free_ gchar *guid = NULL;
_cleanup_free_ gchar *id = NULL;
_cleanup_free_ gchar *location_checksum = NULL;
- _cleanup_free_ gchar *location_url = NULL;
_cleanup_free_ gchar *name = NULL;
_cleanup_free_ gchar *srcpkg = NULL;
_cleanup_free_ gchar *vendor = NULL;
@@ -194,15 +192,6 @@ as_app_parse_inf_file (AsApp *app,
as_release_set_timestamp (release, timestamp);
as_app_add_release (app, release);
- /* this is a Linux extension */
- location_url = g_key_file_get_string (kf, "Location", "URLs", NULL);
- if (location_url != NULL) {
- _cleanup_strv_free_ gchar **location_urls = NULL;
- location_urls = g_strsplit (location_url, ",", -1);
- for (i = 0; location_urls[i] != NULL; i++)
- as_release_add_location (release, location_urls[i], -1);
- }
-
/* add icon */
icon = as_icon_new ();
as_icon_set_kind (icon, AS_ICON_KIND_STOCK);