diff options
Diffstat (limited to 'URPM.xs')
-rw-r--r-- | URPM.xs | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -935,12 +935,8 @@ update_provides_files(const URPM__Package pkg, HV *provides) { struct rpmtd_s td; if (headerGet(pkg->h, RPMTAG_OLDFILENAMES, &td, HEADERGET_DEFAULT)) { - for (i = 0; i < rpmtdCount(&td); i++) { - const char *s = rpmtdNextString(&td); - len = strlen(s); - - update_hash_entry(provides, s, len, 0, 0, pkg); - } + for (i = 0; i < rpmtdCount(&td); i++) + update_hash_entry(provides, rpmtdNextString(&td), 0, 0, 0, pkg); rpmtdFreeData(&td); } |