xbps-remove(8): fix assertion when the cachedir is empty.
This commit is contained in:
parent
df93e790a6
commit
766cbcf683
3
NEWS
3
NEWS
@ -1,5 +1,8 @@
|
|||||||
xbps-0.38 (???):
|
xbps-0.38 (???):
|
||||||
|
|
||||||
|
* xbps-remove(8): -O/--clean-cache no longer triggers an assertion when the
|
||||||
|
cache directory is empty.
|
||||||
|
|
||||||
* Implemented support to preserve existent on-disk files, by always ignoring
|
* Implemented support to preserve existent on-disk files, by always ignoring
|
||||||
the pkg content if the file has been matched. Details here:
|
the pkg content if the file has been matched. Details here:
|
||||||
https://github.com/voidlinux/xbps/issues/51
|
https://github.com/voidlinux/xbps/issues/51
|
||||||
|
@ -136,7 +136,9 @@ clean_cachedir(struct xbps_handle *xhp)
|
|||||||
}
|
}
|
||||||
(void)closedir(dirp);
|
(void)closedir(dirp);
|
||||||
|
|
||||||
|
if (xbps_array_count(array)) {
|
||||||
rv = xbps_array_foreach_cb_multi(xhp, array, NULL, cleaner_cb, NULL);
|
rv = xbps_array_foreach_cb_multi(xhp, array, NULL, cleaner_cb, NULL);
|
||||||
xbps_object_release(array);
|
xbps_object_release(array);
|
||||||
|
}
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user