aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-11-01 14:50:11 +0000
committerThierry Vignaud <tv@mageia.org>2012-11-01 14:50:11 +0000
commitb2c6da11f402dfa9536be91fc360a4b57daf3cd9 (patch)
tree2d59b7087f9cdba8d00d6475b2947d56e8be2b0e
parentef18966f6a51d0336e0a75b13354516be5a17d5b (diff)
downloadperl-URPM-b2c6da11f402dfa9536be91fc360a4b57daf3cd9.tar
perl-URPM-b2c6da11f402dfa9536be91fc360a4b57daf3cd9.tar.gz
perl-URPM-b2c6da11f402dfa9536be91fc360a4b57daf3cd9.tar.bz2
perl-URPM-b2c6da11f402dfa9536be91fc360a4b57daf3cd9.tar.xz
perl-URPM-b2c6da11f402dfa9536be91fc360a4b57daf3cd9.zip
(Trans_traverse) style after previous commit (2/2)
-rw-r--r--URPM.xs3
1 files changed, 1 insertions, 2 deletions
diff --git a/URPM.xs b/URPM.xs
index 3b2e6ee..638a90f 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -2597,9 +2597,8 @@ Trans_traverse(trans, callback)
CODE:
mi = rpmtsInitIterator(trans->ts, RPMDBI_PACKAGES, NULL, 0);
while ((h = rpmdbNextIterator(mi))) {
- if (SvROK(callback)) {
+ if (SvROK(callback))
_run_cb_while_traversing(callback, h, G_DISCARD);
- }
++c;
}
rpmdbFreeIterator(mi);