aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-12-10 15:29:08 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-12-10 15:29:08 +0000
commitc4790a507707000ba7e0016c0fff6a4cdb363ef7 (patch)
treeaebea1e3a1e5f9309d56967f2c3480a931891296 /URPM.xs
parentdbcb537597b881246ac37f4a70de371d3ccda614 (diff)
downloadperl-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
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);