xbps-rindex: [clean] the filesclean test now passes successfully.
This commit is contained in:
parent
c06115af9a
commit
89c62c626c
@ -121,9 +121,9 @@ index_clean(struct xbps_handle *xhp, const char *repodir)
|
|||||||
for (unsigned int x = 0; x < xbps_array_count(cbd.result); x++) {
|
for (unsigned int x = 0; x < xbps_array_count(cbd.result); x++) {
|
||||||
xbps_array_get_cstring_nocopy(cbd.result, x, &keyname);
|
xbps_array_get_cstring_nocopy(cbd.result, x, &keyname);
|
||||||
printf("index: removed entry %s\n", keyname);
|
printf("index: removed entry %s\n", keyname);
|
||||||
|
xbps_dictionary_remove(idxfiles, keyname);
|
||||||
pkgname = xbps_pkg_name(keyname);
|
pkgname = xbps_pkg_name(keyname);
|
||||||
xbps_dictionary_remove(idx, pkgname);
|
xbps_dictionary_remove(idx, pkgname);
|
||||||
xbps_dictionary_remove(idxfiles, keyname);
|
|
||||||
free(pkgname);
|
free(pkgname);
|
||||||
flush = true;
|
flush = true;
|
||||||
}
|
}
|
||||||
|
@ -49,8 +49,9 @@ filesclean_body() {
|
|||||||
cd ..
|
cd ..
|
||||||
xbps-rindex -c some_repo
|
xbps-rindex -c some_repo
|
||||||
atf_check_equal $? 0
|
atf_check_equal $? 0
|
||||||
result=$(xbps-query --repository=some_repo -o \*|wc -l)
|
result=$(xbps-query --repository=some_repo -o \*)
|
||||||
atf_check_equal ${result} 1
|
test -z "${result}"
|
||||||
|
atf_check_equal $? 0
|
||||||
}
|
}
|
||||||
|
|
||||||
filesclean_cleanup() {
|
filesclean_cleanup() {
|
||||||
|
Loading…
Reference in New Issue
Block a user