aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs7
1 files changed, 2 insertions, 5 deletions
diff --git a/URPM.xs b/URPM.xs
index c394dbc..5a6e3ac 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -701,15 +701,12 @@ return_files(Header header, int filter_mode) {
void
return_problems(rpmps ps, int translate_message) {
dSP;
- if (ps && ps->probs && ps->numProblems > 0) {
+ if (ps && rpmpsNumProblems(ps) > 0) {
int i;
- for (i = 0; i < ps->numProblems; i++) {
+ for (i = 0; i < rpmpsNumProblems(ps); i++) {
rpmProblem p = ps->probs + i;
- if (p->ignoreProblem)
- continue;
-
if (translate_message) {
/* translate error using rpm localization */
const char *buf = rpmProblemString(p);