From: Tomas Mlcoch Date: Wed, 16 Jul 2014 14:57:00 +0000 (+0200) Subject: error: Add support for deltarpm failures X-Git-Tag: upstream/0.10.0~204 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=07fdb3579936e1881347ea5d4cf47f5789af4478;p=services%2Fcreaterepo_c.git error: Add support for deltarpm failures --- diff --git a/src/error.c b/src/error.c index 51ac9d1..b5d9986 100644 --- a/src/error.c +++ b/src/error.c @@ -83,6 +83,8 @@ cr_strerror(cr_Error rc) return "Child process stopped by signal"; case CRE_SPAWNABNORMAL: return "Child process exited abnormally"; + case CRE_DELTARPM: + return "Deltarpm error"; default: return "Unknown error"; } @@ -113,6 +115,12 @@ cr_db_error_quark(void) } GQuark +cr_deltarpms_error_quark(void) +{ + return g_quark_from_static_string("cr_deltarpms_error"); +} + +GQuark cr_helper_error_quark(void) { return g_quark_from_static_string("cr_helper_error"); diff --git a/src/error.h b/src/error.h index fe0e8cd..ea631c0 100644 --- a/src/error.h +++ b/src/error.h @@ -88,6 +88,8 @@ typedef enum { (29) Child process stopped by signal */ CRE_SPAWNABNORMAL, /*!< (30) Child process exited abnormally */ + CRE_DELTARPM, /*!< + (31) Deltarpm related error */ } cr_Error; /** Converts cr_Error return code to error string. @@ -101,6 +103,7 @@ const char *cr_strerror(cr_Error rc); #define CR_CMD_ERROR cr_cmd_error_quark() #define CR_COMPRESSION_WRAPPER_ERROR cr_compression_wrapper_error_quark() #define CR_DB_ERROR cr_db_error_quark() +#define CR_DELTARPMS_ERROR cr_deltarpms_error_quark() #define CR_HELPER_ERROR cr_helper_error_quark() #define CR_LOAD_METADATA_ERROR cr_load_metadata_error_quark() #define CR_LOCATE_METADATA_ERROR cr_locate_metadata_error_quark() @@ -125,6 +128,7 @@ GQuark cr_checksum_error_quark(void); GQuark cr_cmd_error_quark(void); GQuark cr_compression_wrapper_error_quark(void); GQuark cr_db_error_quark(void); +GQuark cr_deltarpms_error_quark(void); GQuark cr_helper_error_quark(void); GQuark cr_load_metadata_error_quark(void); GQuark cr_locate_metadata_error_quark(void);