xbps-rindex: initialize idxfiles in repo to access to it.

This commit is contained in:
Juan RP 2013-10-18 09:36:25 +02:00
parent aad0502b95
commit ab5b356b5b

View File

@ -70,6 +70,7 @@ index_add(struct xbps_handle *xhp, int argc, char **argv, bool force)
idx = xbps_dictionary_create(); idx = xbps_dictionary_create();
idxfiles = xbps_dictionary_create(); idxfiles = xbps_dictionary_create();
} else { } else {
xbps_repo_open_idxfiles(repo);
idx = xbps_dictionary_copy(repo->idx); idx = xbps_dictionary_copy(repo->idx);
idxfiles = xbps_dictionary_copy(repo->idxfiles); idxfiles = xbps_dictionary_copy(repo->idxfiles);
xbps_repo_close(repo); xbps_repo_close(repo);