[gnome-software/gnome-3-10] Match the AppStream ID when searching



commit 7c54326dec8d8685d5c12f22fbaa1de9591a243e
Author: Richard Hughes <richard hughsie com>
Date:   Wed Oct 23 08:45:12 2013 +0100

    Match the AppStream ID when searching
    
    This allows us to specify webapps exactly from the command line, and also helps
    with applications with names like like '0ad'.

 src/plugins/appstream-app.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/appstream-app.c b/src/plugins/appstream-app.c
index b0802ea..6adecb3 100644
--- a/src/plugins/appstream-app.c
+++ b/src/plugins/appstream-app.c
@@ -391,6 +391,8 @@ appstream_app_search_matches (AppstreamApp *app, const gchar *search)
 
        if (search == NULL)
                return FALSE;
+       if (app->id != NULL && strcasestr (app->id, search) != NULL)
+               return TRUE;
        if (app->name != NULL && strcasestr (app->name, search) != NULL)
                return TRUE;
        if (app->summary != NULL && strcasestr (app->summary, search) != NULL)


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