summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-08-09 02:55:44 +0200
committerDan McGee <dan@archlinux.org>2011-08-09 02:55:44 +0200
commit5f38660be12c898e6ddef0d09b973d259d80c763 (patch)
tree9503aa67599730a4427eb741a8d768b2a5b6173f /src
parent9d09c9fdf7f6156e81c28045e36970158f26d2f1 (diff)
downloadpacman-5f38660be12c898e6ddef0d09b973d259d80c763.tar.gz
pacman-5f38660be12c898e6ddef0d09b973d259d80c763.tar.xz
Add reason to corrupted package callback
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/callback.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pacman/callback.c b/src/pacman/callback.c
index 237ccea0..a8163d0a 100644
--- a/src/pacman/callback.c
+++ b/src/pacman/callback.c
@@ -330,8 +330,10 @@ void cb_trans_conv(alpm_transconv_t event, void *data1, void *data2,
}
break;
case ALPM_TRANS_CONV_CORRUPTED_PKG:
- *response = yesno(_(":: File %s is corrupted. Do you want to delete it?"),
- (char *)data1);
+ *response = yesno(_(":: File %s is corrupted (%s).\n"
+ "Do you want to delete it?"),
+ (char *)data1,
+ alpm_strerror(*(enum _alpm_errno_t *)data2));
break;
}
if(config->noask) {