[gnome-software] Do not print a warning when new versions of appdata-tools are installed



commit ff39b07485fe9abb23cfada1a82e7ac1f0eb9a83
Author: Richard Hughes <richard hughsie com>
Date:   Fri Sep 27 10:12:30 2013 +0100

    Do not print a warning when new versions of appdata-tools are installed

 src/plugins/gs-plugin-appdata.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-appdata.c b/src/plugins/gs-plugin-appdata.c
index 1eea847..b8b3978 100644
--- a/src/plugins/gs-plugin-appdata.c
+++ b/src/plugins/gs-plugin-appdata.c
@@ -91,6 +91,8 @@ gs_plugin_startup (GsPlugin *plugin, GError **error)
        if (dir == NULL)
                goto out;
        while ((tmp = g_dir_read_name (dir)) != NULL) {
+               if (g_strcmp0 (tmp, "schema") == 0)
+                       continue;
                if (!g_str_has_suffix (tmp, ".appdata.xml")) {
                        g_warning ("AppData: not a data file: %s/%s",
                                   plugin->priv->cachedir, tmp);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]