[gnome-software/wip/temp/ubuntu-xenial-rebased: 241/329] Set state of virtual meta package



commit 4224e3bcc73896686379533c93caa8d4ca8bb375
Author: William Hua <william hua canonical com>
Date:   Thu Apr 14 16:35:43 2016 -0400

    Set state of virtual meta package

 src/plugins/gs-plugin-apt.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/gs-plugin-apt.cc b/src/plugins/gs-plugin-apt.cc
index bcefcfa..19a001c 100644
--- a/src/plugins/gs-plugin-apt.cc
+++ b/src/plugins/gs-plugin-apt.cc
@@ -1009,6 +1009,7 @@ set_list_state (GList      *apps,
 
        for (i = apps; i != NULL; i = i->next) {
                app_i = GS_APP (i->data);
+               gs_app_set_state (app_i, state);
 
                if (g_strcmp0 (gs_app_get_id (app_i), "os-update.virtual") == 0) {
                        related = gs_app_get_related (app_i);
@@ -1017,8 +1018,7 @@ set_list_state (GList      *apps,
                                app_j = GS_APP (g_ptr_array_index (related, j));
                                gs_app_set_state (app_j, state);
                        }
-               } else
-                       gs_app_set_state (app_i, state);
+               }
        }
 }
 


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