diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-11-01 14:50:15 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-11-01 14:50:15 +0000 |
commit | b10406e38b62bbe9eab737dc0e755d55c8965913 (patch) | |
tree | 82fbd06731634298e64b24b92ebd678b9bdbab55 /URPM.xs | |
parent | b2c6da11f402dfa9536be91fc360a4b57daf3cd9 (diff) | |
download | perl-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.xs | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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); |