aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs16
1 files changed, 10 insertions, 6 deletions
diff --git a/URPM.xs b/URPM.xs
index 18026f2..4b2e7cf 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -117,7 +117,7 @@ static ssize_t write_nocheck(int fd, const void *buf, size_t count) {
static int rpmError_callback_data;
void rpmError_callback() {
if (rpmErrorCode() != RPMERR_UNLINK && rpmErrorCode() != RPMERR_RMDIR) {
- write_nocheck(rpmError_callback_data, rpmErrorString(), strlen(rpmErrorString()));
+ write_nocheck(rpmError_callback_data, rpmlogMessage(), strlen(rpmlogMessage()));
}
}
@@ -3648,19 +3648,19 @@ Urpm_verify_signature(filename)
rpmTagTable, rpmHeaderFormats, NULL);
snprintf(result, sizeof(result), "OK (%s)", fmtsig);
free(fmtsig);
- } else snprintf(result, sizeof(result), "NOT OK (bad rpm): %s", rpmErrorString());
+ } else snprintf(result, sizeof(result), "NOT OK (bad rpm): %s", rpmlogMessage());
break;
case RPMRC_NOTFOUND:
- snprintf(result, sizeof(result), "NOT OK (signature not found): %s", rpmErrorString());
+ snprintf(result, sizeof(result), "NOT OK (signature not found): %s", rpmlogMessage());
break;
case RPMRC_FAIL:
- snprintf(result, sizeof(result), "NOT OK (fail): %s", rpmErrorString());
+ snprintf(result, sizeof(result), "NOT OK (fail): %s", rpmlogMessage());
break;
case RPMRC_NOTTRUSTED:
- snprintf(result, sizeof(result), "NOT OK (key not trusted): %s", rpmErrorString());
+ snprintf(result, sizeof(result), "NOT OK (key not trusted): %s", rpmlogMessage());
break;
case RPMRC_NOKEY:
- snprintf(result, sizeof(result), "NOT OK (no key): %s", rpmErrorString());
+ snprintf(result, sizeof(result), "NOT OK (no key): %s", rpmlogMessage());
break;
}
RETVAL = result;
@@ -4026,6 +4026,10 @@ setVerbosity(level)
const char *
rpmErrorString()
+ CODE:
+ RETVAL = rpmlogMessage();
+ OUTPUT:
+ RETVAL
void
rpmErrorWriteTo(fd)