[gnome-software] trivial: Use ERROR_DOWNLOAD_FAILED in the PackageKit plugins
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Use ERROR_DOWNLOAD_FAILED in the PackageKit plugins
- Date: Thu, 8 Sep 2016 11:50:48 +0000 (UTC)
commit d546c432aa8390839d3c43599f0c8d1932156af5
Author: Richard Hughes <richard hughsie com>
Date: Thu Sep 8 12:38:13 2016 +0100
trivial: Use ERROR_DOWNLOAD_FAILED in the PackageKit plugins
src/plugins/packagekit-common.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/packagekit-common.c b/src/plugins/packagekit-common.c
index 2aeedef..552698a 100644
--- a/src/plugins/packagekit-common.c
+++ b/src/plugins/packagekit-common.c
@@ -117,13 +117,15 @@ gs_plugin_packagekit_convert_gerror (GError **error)
case PK_ERROR_ENUM_PACKAGE_INSTALL_BLOCKED:
error_tmp->code = GS_PLUGIN_ERROR_NOT_SUPPORTED;
break;
- case PK_ERROR_ENUM_CANNOT_FETCH_SOURCES:
case PK_ERROR_ENUM_NO_CACHE:
- case PK_ERROR_ENUM_NO_MORE_MIRRORS_TO_TRY:
case PK_ERROR_ENUM_NO_NETWORK:
- case PK_ERROR_ENUM_PACKAGE_DOWNLOAD_FAILED:
error_tmp->code = GS_PLUGIN_ERROR_NO_NETWORK;
break;
+ case PK_ERROR_ENUM_PACKAGE_DOWNLOAD_FAILED:
+ case PK_ERROR_ENUM_NO_MORE_MIRRORS_TO_TRY:
+ case PK_ERROR_ENUM_CANNOT_FETCH_SOURCES:
+ error_tmp->code = GS_PLUGIN_ERROR_DOWNLOAD_FAILED;
+ break;
case PK_ERROR_ENUM_BAD_GPG_SIGNATURE:
case PK_ERROR_ENUM_CANNOT_INSTALL_REPO_UNSIGNED:
case PK_ERROR_ENUM_CANNOT_UPDATE_REPO_UNSIGNED:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]