[gnome-software] trivial: Allow profiling the updates using	gnome-software-cmd
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-software] trivial: Allow profiling the updates using	gnome-software-cmd
- Date: Sun, 20 Oct 2013 19:15:49 +0000 (UTC)
commit 44a871b8ac2080f3743fe04c4ee063aee1a7fdd4
Author: Richard Hughes <richard hughsie com>
Date:   Sun Oct 20 20:15:26 2013 +0100
    trivial: Allow profiling the updates using gnome-software-cmd
    
    Wowsers. 12 SECONDS to query the updates list using yum.
 src/gs-cmd.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-cmd.c b/src/gs-cmd.c
index 0bba22f..f6480fd 100644
--- a/src/gs-cmd.c
+++ b/src/gs-cmd.c
@@ -104,8 +104,14 @@ main (int argc, char **argv)
                                                GS_PLUGIN_REFINE_FLAGS_DEFAULT,
                                                NULL,
                                                &error);
+       } else if (argc == 2 && g_strcmp0 (argv[1], "updates") == 0) {
+               list = gs_plugin_loader_get_updates (plugin_loader,
+                                                    GS_PLUGIN_REFINE_FLAGS_DEFAULT,
+                                                    NULL,
+                                                    &error);
        } else {
-               g_warning ("Did not recognise option, use 'installed', or 'search'");
+               g_warning ("Did not recognise option, use 'installed', "
+                          "'updates', or 'search'");
        }
 
        if (show_results)
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]