Fix binpkg installation with multiple repositories.

New changes include a modified algorithm of the previous one, which
finally does not fail even with multiple repos, YAY!

Fixed some leaks as well, thanks to valgrind.

--HG--
extra : convert_revision : 3cffe1e9e9e9f7abf225ca3c6643377fc12a94bd
This commit is contained in:
Juan RP
2009-02-14 01:37:12 +01:00
parent 6afd85a491
commit 3c7b8186e6
9 changed files with 527 additions and 328 deletions

View File

@@ -44,9 +44,12 @@ bool xbps_add_obj_to_array(prop_array_t, prop_object_t);
*/
int
xbps_callback_array_iter_in_dict(prop_dictionary_t, const char *,
int (*func)(prop_object_t, void *, bool *),
int (*fn)(prop_object_t, void *, bool *),
void *);
int
xbps_callback_array_iter_in_repolist(const char *,
int (*fn)(prop_object_t, void *, bool *),
void *);
/*
* Finds a package's dictionary into the main dictionary.
*