aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);