diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-12-10 15:29:08 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-12-10 15:29:08 +0000 |
commit | c4790a507707000ba7e0016c0fff6a4cdb363ef7 (patch) | |
tree | aebea1e3a1e5f9309d56967f2c3480a931891296 | |
parent | dbcb537597b881246ac37f4a70de371d3ccda614 (diff) | |
download | perl-URPM-c4790a507707000ba7e0016c0fff6a4cdb363ef7.tar perl-URPM-c4790a507707000ba7e0016c0fff6a4cdb363ef7.tar.gz perl-URPM-c4790a507707000ba7e0016c0fff6a4cdb363ef7.tar.bz2 perl-URPM-c4790a507707000ba7e0016c0fff6a4cdb363ef7.tar.xz perl-URPM-c4790a507707000ba7e0016c0fff6a4cdb363ef7.zip |
- use rpmpsNumProblems()
- don't check ignoreProblem, it's always 0 afaik
-rw-r--r-- | URPM.xs | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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); |