diff options
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); |