mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 00:08:50 -05:00
Remove unused error codes and handle PM_ERR_RETRIEVE by alpm_strerror()
Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
882bff36ac
commit
0bf340f73c
@ -487,31 +487,22 @@ enum _pmerrno_t {
|
|||||||
PM_ERR_TRANS_NOT_PREPARED,
|
PM_ERR_TRANS_NOT_PREPARED,
|
||||||
PM_ERR_TRANS_ABORT,
|
PM_ERR_TRANS_ABORT,
|
||||||
PM_ERR_TRANS_TYPE,
|
PM_ERR_TRANS_TYPE,
|
||||||
PM_ERR_TRANS_COMMITING,
|
|
||||||
PM_ERR_TRANS_DOWNLOADING,
|
|
||||||
/* Packages */
|
/* Packages */
|
||||||
PM_ERR_PKG_NOT_FOUND,
|
PM_ERR_PKG_NOT_FOUND,
|
||||||
PM_ERR_PKG_IGNORED,
|
PM_ERR_PKG_IGNORED,
|
||||||
PM_ERR_PKG_INVALID,
|
PM_ERR_PKG_INVALID,
|
||||||
PM_ERR_PKG_OPEN,
|
PM_ERR_PKG_OPEN,
|
||||||
PM_ERR_PKG_LOAD,
|
|
||||||
PM_ERR_PKG_CANT_FRESH,
|
|
||||||
PM_ERR_PKG_CANT_REMOVE,
|
PM_ERR_PKG_CANT_REMOVE,
|
||||||
PM_ERR_PKG_INVALID_NAME,
|
PM_ERR_PKG_INVALID_NAME,
|
||||||
PM_ERR_PKG_REPO_NOT_FOUND,
|
PM_ERR_PKG_REPO_NOT_FOUND,
|
||||||
/* Deltas */
|
/* Deltas */
|
||||||
PM_ERR_DLT_INVALID,
|
PM_ERR_DLT_INVALID,
|
||||||
PM_ERR_DLT_PATCHFAILED,
|
PM_ERR_DLT_PATCHFAILED,
|
||||||
/* Groups */
|
|
||||||
PM_ERR_GRP_NOT_FOUND,
|
|
||||||
/* Dependencies */
|
/* Dependencies */
|
||||||
PM_ERR_UNSATISFIED_DEPS,
|
PM_ERR_UNSATISFIED_DEPS,
|
||||||
PM_ERR_CONFLICTING_DEPS,
|
PM_ERR_CONFLICTING_DEPS,
|
||||||
PM_ERR_FILE_CONFLICTS,
|
PM_ERR_FILE_CONFLICTS,
|
||||||
/* Misc */
|
/* Misc */
|
||||||
PM_ERR_USER_ABORT,
|
|
||||||
PM_ERR_INTERNAL_ERROR,
|
|
||||||
PM_ERR_DB_SYNC,
|
|
||||||
PM_ERR_RETRIEVE,
|
PM_ERR_RETRIEVE,
|
||||||
PM_ERR_INVALID_REGEX,
|
PM_ERR_INVALID_REGEX,
|
||||||
/* External library errors */
|
/* External library errors */
|
||||||
|
@ -99,10 +99,6 @@ const char SYMEXPORT *alpm_strerror(int err)
|
|||||||
return _("transaction aborted");
|
return _("transaction aborted");
|
||||||
case PM_ERR_TRANS_TYPE:
|
case PM_ERR_TRANS_TYPE:
|
||||||
return _("operation not compatible with the transaction type");
|
return _("operation not compatible with the transaction type");
|
||||||
case PM_ERR_TRANS_COMMITING:
|
|
||||||
return _("could not commit transaction");
|
|
||||||
case PM_ERR_TRANS_DOWNLOADING:
|
|
||||||
return _("could not download all files");
|
|
||||||
/* Packages */
|
/* Packages */
|
||||||
case PM_ERR_PKG_NOT_FOUND:
|
case PM_ERR_PKG_NOT_FOUND:
|
||||||
return _("could not find or read package");
|
return _("could not find or read package");
|
||||||
@ -112,10 +108,6 @@ const char SYMEXPORT *alpm_strerror(int err)
|
|||||||
return _("invalid or corrupted package");
|
return _("invalid or corrupted package");
|
||||||
case PM_ERR_PKG_OPEN:
|
case PM_ERR_PKG_OPEN:
|
||||||
return _("cannot open package file");
|
return _("cannot open package file");
|
||||||
case PM_ERR_PKG_LOAD:
|
|
||||||
return _("cannot load package data");
|
|
||||||
case PM_ERR_PKG_CANT_FRESH:
|
|
||||||
return _("package not installed or lesser version");
|
|
||||||
case PM_ERR_PKG_CANT_REMOVE:
|
case PM_ERR_PKG_CANT_REMOVE:
|
||||||
return _("cannot remove all files for package");
|
return _("cannot remove all files for package");
|
||||||
case PM_ERR_PKG_INVALID_NAME:
|
case PM_ERR_PKG_INVALID_NAME:
|
||||||
@ -127,9 +119,6 @@ const char SYMEXPORT *alpm_strerror(int err)
|
|||||||
return _("invalid or corrupted delta");
|
return _("invalid or corrupted delta");
|
||||||
case PM_ERR_DLT_PATCHFAILED:
|
case PM_ERR_DLT_PATCHFAILED:
|
||||||
return _("delta patch failed");
|
return _("delta patch failed");
|
||||||
/* Groups */
|
|
||||||
case PM_ERR_GRP_NOT_FOUND:
|
|
||||||
return _("group not found");
|
|
||||||
/* Dependencies */
|
/* Dependencies */
|
||||||
case PM_ERR_UNSATISFIED_DEPS:
|
case PM_ERR_UNSATISFIED_DEPS:
|
||||||
return _("could not satisfy dependencies");
|
return _("could not satisfy dependencies");
|
||||||
@ -138,10 +127,8 @@ const char SYMEXPORT *alpm_strerror(int err)
|
|||||||
case PM_ERR_FILE_CONFLICTS:
|
case PM_ERR_FILE_CONFLICTS:
|
||||||
return _("conflicting files");
|
return _("conflicting files");
|
||||||
/* Miscellaenous */
|
/* Miscellaenous */
|
||||||
case PM_ERR_USER_ABORT:
|
case PM_ERR_RETRIEVE:
|
||||||
return _("user aborted the operation");
|
return _("failed to retrieve some files");
|
||||||
case PM_ERR_INTERNAL_ERROR:
|
|
||||||
return _("internal error");
|
|
||||||
case PM_ERR_INVALID_REGEX:
|
case PM_ERR_INVALID_REGEX:
|
||||||
return _("invalid regular expression");
|
return _("invalid regular expression");
|
||||||
/* Errors from external libraries- our own wrapper error */
|
/* Errors from external libraries- our own wrapper error */
|
||||||
|
Loading…
Reference in New Issue
Block a user