aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-11-01 14:50:15 +0000
committerThierry Vignaud <tv@mageia.org>2012-11-01 14:50:15 +0000
commitb10406e38b62bbe9eab737dc0e755d55c8965913 (patch)
tree82fbd06731634298e64b24b92ebd678b9bdbab55 /URPM.xs
parentb2c6da11f402dfa9536be91fc360a4b57daf3cd9 (diff)
downloadperl-URPM-b10406e38b62bbe9eab737dc0e755d55c8965913.tar
perl-URPM-b10406e38b62bbe9eab737dc0e755d55c8965913.tar.gz
perl-URPM-b10406e38b62bbe9eab737dc0e755d55c8965913.tar.bz2
perl-URPM-b10406e38b62bbe9eab737dc0e755d55c8965913.tar.xz
perl-URPM-b10406e38b62bbe9eab737dc0e755d55c8965913.zip
applying similar styling to other callers
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs6
1 files changed, 2 insertions, 4 deletions
diff --git a/URPM.xs b/URPM.xs
index 638a90f..0ecebaf 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -2415,9 +2415,8 @@ Db_traverse(db,callback)
ovsflags = ts_nosignature(db->ts);
mi = rpmtsInitIterator(db->ts, RPMDBI_PACKAGES, NULL, 0);
while ((header = rpmdbNextIterator(mi))) {
- if (SvROK(callback)) {
+ if (SvROK(callback))
_run_cb_while_traversing(callback, header, G_DISCARD);
- }
++count;
}
rpmdbFreeIterator(mi);
@@ -2453,9 +2452,8 @@ Db_traverse_tag(db,tag,names,callback)
ovsflags = ts_nosignature(db->ts);
mi = rpmtsInitIterator(db->ts, rpmtag, name, str_len);
while ((header = rpmdbNextIterator(mi))) {
- if (SvROK(callback)) {
+ if (SvROK(callback))
_run_cb_while_traversing(callback, header, G_DISCARD);
- }
++count;
}
(void)rpmdbFreeIterator(mi);