summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/util.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2008-10-13 04:08:39 +0200
committerDan McGee <dan@archlinux.org>2010-12-13 04:42:41 +0100
commitb276a76dc9e02e1cdc227661ae4ffe97a24d9f4d (patch)
tree18badc62a62c7a5fcb97ebbbf0831af60e5def9b /lib/libalpm/util.c
parent3030542d10d4e87997a894a9eb63122cd2426a94 (diff)
downloadpacman-b276a76dc9e02e1cdc227661ae4ffe97a24d9f4d.tar.gz
pacman-b276a76dc9e02e1cdc227661ae4ffe97a24d9f4d.tar.xz
Turn libarchive warnings into libalpm warnings
Rather than hiding these warnings, show them to the user as they happen. This will prevent things such as hiding full filesystem errors (ENOSPC) from the user as seen in FS#11639. Signed-off-by: Dan McGee <dan@archlinux.org> [Allan: adjust warning wording and add gettext calls] Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/util.c')
-rw-r--r--lib/libalpm/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
index 26612418..e425fa48 100644
--- a/lib/libalpm/util.c
+++ b/lib/libalpm/util.c
@@ -360,7 +360,7 @@ int _alpm_unpack(const char *archive, const char *prefix, alpm_list_t *list, int
int readret = archive_read_extract(_archive, entry, 0);
if(readret == ARCHIVE_WARN) {
/* operation succeeded but a non-critical error was encountered */
- _alpm_log(PM_LOG_DEBUG, "warning extracting %s (%s)\n",
+ _alpm_log(PM_LOG_WARNING, _("warning given while extracting %s (%s)\n"),
entryname, archive_error_string(_archive));
} else if(readret != ARCHIVE_OK) {
_alpm_log(PM_LOG_ERROR, _("could not extract %s (%s)\n"),