summaryrefslogtreecommitdiff
path: root/lib/libalpm/error.c
diff options
context:
space:
mode:
authorNathan Jones <nathanj@insightbb.com>2007-10-19 13:17:53 -0400
committerDan McGee <dan@archlinux.org>2007-10-19 19:29:17 -0500
commite472e80c084c5e94fdc15d2f6565c50e65854372 (patch)
treecf19a2493d81696f04469385a837b9a7a739733b /lib/libalpm/error.c
parent520db578daf4dfe4863f9c32026460ada9131b78 (diff)
downloadpacman-e472e80c084c5e94fdc15d2f6565c50e65854372.tar.xz
Download delta files if UseDelta is set.
Delta files will be used if the size is smaller than a percent (MAX_DELTA_RATIO) of the package size. Signed-off-by: Nathan Jones <nathanj@insightbb.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/error.c')
-rw-r--r--lib/libalpm/error.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libalpm/error.c b/lib/libalpm/error.c
index f81d22da..44d1c60e 100644
--- a/lib/libalpm/error.c
+++ b/lib/libalpm/error.c
@@ -123,6 +123,11 @@ const char SYMEXPORT *alpm_strerror(int err)
return _("corrupted package");
case PM_ERR_PKG_REPO_NOT_FOUND:
return _("no such repository");
+ /* Deltas */
+ case PM_ERR_DLT_CORRUPTED:
+ return _("corrupted delta");
+ case PM_ERR_DLT_PATCHFAILED:
+ return _("delta patch failed");
/* Groups */
case PM_ERR_GRP_NOT_FOUND:
return _("group not found");