diff options
author | Dan McGee <dan@archlinux.org> | 2011-08-08 19:55:44 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-08-08 19:55:44 -0500 |
commit | 5f38660be12c898e6ddef0d09b973d259d80c763 (patch) | |
tree | 9503aa67599730a4427eb741a8d768b2a5b6173f /src/pacman | |
parent | 9d09c9fdf7f6156e81c28045e36970158f26d2f1 (diff) | |
download | pacman-5f38660be12c898e6ddef0d09b973d259d80c763.tar.xz |
Add reason to corrupted package callback
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman')
-rw-r--r-- | src/pacman/callback.c | 6 |
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) { |