xbps-rindex: eliminate locking and update repo index immutable dicts.

This commit is contained in:
Juan RP
2015-05-22 12:20:49 +02:00
parent 4fdc8de9d6
commit b459e4542f
2 changed files with 9 additions and 26 deletions

View File

@ -69,8 +69,8 @@ index_add(struct xbps_handle *xhp, int args, int argmax, char **argv, bool force
goto out;
}
if (repo) {
idx = xbps_dictionary_copy(repo->idx);
idxmeta = xbps_dictionary_copy(repo->idxmeta);
idx = xbps_dictionary_copy_mutable(repo->idx);
idxmeta = xbps_dictionary_copy_mutable(repo->idxmeta);
} else {
idx = xbps_dictionary_create();
idxmeta = NULL;