xbps-rindex: initialize idxfiles in repo to access to it.
This commit is contained in:
parent
aad0502b95
commit
ab5b356b5b
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user