Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/error.c
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2010-11-16 16:43:45 +1000
committerDan McGee <dan@archlinux.org>2010-12-12 20:29:59 -0600
commit3f0d98c124db1547d6595762bd2d125b4350b861 (patch)
treef4169db4b041783e010843c7333b9afbdfb9da9e /lib/libalpm/error.c
parente527699dddca41e3af6c1872e851405a4f5212a0 (diff)
Implement disk space checking
Pull together the work of the previous commits to implement a check for enough free space before performing an install transaction. Abort if there is not enough free space with an appropriate pm_errno.. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/error.c')
-rw-r--r--lib/libalpm/error.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/error.c b/lib/libalpm/error.c
index c83f606e..78a78667 100644
--- a/lib/libalpm/error.c
+++ b/lib/libalpm/error.c
@@ -60,6 +60,8 @@ const char SYMEXPORT *alpm_strerror(int err)
return _("could not find or read directory");
case PM_ERR_WRONG_ARGS:
return _("wrong or NULL argument passed");
+ case PM_ERR_DISK_SPACE:
+ return _("not enough disk space");
/* Interface */
case PM_ERR_HANDLE_NULL:
return _("library not initialized");