[gnome-software] Match the AppStream ID when searching



commit ce613d23c39c08893b1f628616eb474f28094429
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 fb22fed..1806f07 100644
--- a/src/plugins/appstream-app.c
+++ b/src/plugins/appstream-app.c
@@ -511,6 +511,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]