[gnome-software] trivial: Remove a couple of possible warning messages when installing packages
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Remove a couple of possible warning messages when installing packages
- Date: Fri, 18 Oct 2013 09:35:54 +0000 (UTC)
commit 58ed192f4d11535f4ebd5da3ec6b7a5e888e7e1d
Author: Richard Hughes <richard hughsie com>
Date: Fri Oct 18 10:28:45 2013 +0100
trivial: Remove a couple of possible warning messages when installing packages
src/gs-plugin.c | 4 ++++
src/gs-plugin.h | 2 ++
src/plugins/packagekit-common.c | 9 +++++++++
3 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-plugin.c b/src/gs-plugin.c
index e6cbb29..bc4150b 100644
--- a/src/gs-plugin.c
+++ b/src/gs-plugin.c
@@ -41,6 +41,10 @@ gs_plugin_status_to_string (GsPluginStatus status)
return "downloading";
if (status == GS_PLUGIN_STATUS_QUERYING)
return "querying";
+ if (status == GS_PLUGIN_STATUS_INSTALLING)
+ return "installing";
+ if (status == GS_PLUGIN_STATUS_REMOVING)
+ return "removing";
return "unknown";
}
diff --git a/src/gs-plugin.h b/src/gs-plugin.h
index 3720faf..f278f62 100644
--- a/src/gs-plugin.h
+++ b/src/gs-plugin.h
@@ -43,6 +43,8 @@ typedef enum {
GS_PLUGIN_STATUS_SETUP,
GS_PLUGIN_STATUS_DOWNLOADING,
GS_PLUGIN_STATUS_QUERYING,
+ GS_PLUGIN_STATUS_INSTALLING,
+ GS_PLUGIN_STATUS_REMOVING,
GS_PLUGIN_STATUS_LAST
} GsPluginStatus;
diff --git a/src/plugins/packagekit-common.c b/src/plugins/packagekit-common.c
index 57bc143..46688d0 100644
--- a/src/plugins/packagekit-common.c
+++ b/src/plugins/packagekit-common.c
@@ -43,6 +43,8 @@ packagekit_status_enum_to_plugin_status (PkStatusEnum status)
break;
case PK_STATUS_ENUM_LOADING_CACHE:
case PK_STATUS_ENUM_TEST_COMMIT:
+ case PK_STATUS_ENUM_RUNNING:
+ case PK_STATUS_ENUM_SIG_CHECK:
plugin_status = GS_PLUGIN_STATUS_SETUP;
break;
case PK_STATUS_ENUM_DOWNLOAD:
@@ -54,6 +56,13 @@ packagekit_status_enum_to_plugin_status (PkStatusEnum status)
case PK_STATUS_ENUM_DOWNLOAD_UPDATEINFO:
plugin_status = GS_PLUGIN_STATUS_DOWNLOADING;
break;
+ case PK_STATUS_ENUM_INSTALL:
+ plugin_status = GS_PLUGIN_STATUS_INSTALLING;
+ break;
+ case PK_STATUS_ENUM_CLEANUP:
+ case PK_STATUS_ENUM_REMOVE:
+ plugin_status = GS_PLUGIN_STATUS_REMOVING;
+ break;
case PK_STATUS_ENUM_QUERY:
case PK_STATUS_ENUM_INFO:
case PK_STATUS_ENUM_DEP_RESOLVE:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]