[gnome-software] Set the app version in packagekit-refine if not already set



commit 48c1d8794054474a07ddbe8c24d620bce79f4389
Author: Richard Hughes <richard hughsie com>
Date:   Thu Sep 12 11:41:09 2013 +0100

    Set the app version in packagekit-refine if not already set

 src/plugins/gs-plugin-packagekit-refine.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-packagekit-refine.c b/src/plugins/gs-plugin-packagekit-refine.c
index 97bf263..2379244 100644
--- a/src/plugins/gs-plugin-packagekit-refine.c
+++ b/src/plugins/gs-plugin-packagekit-refine.c
@@ -199,6 +199,8 @@ gs_plugin_packagekit_refine_packages (GsPlugin *plugin,
                                                          GS_APP_STATE_INSTALLED :
                                                          GS_APP_STATE_AVAILABLE);
                                }
+                               if (gs_app_get_version (app) == NULL)
+                                       gs_app_set_version (app, pk_package_get_version (package));
                                cnt++;
                        }
                }


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