commit: 677f45081cdeed1c2cd1550cd0cff816ba1cc15b Author: Ron Nazarov <ron <AT> noisytoot <DOT> org> AuthorDate: Sat Feb 28 20:25:54 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Feb 28 20:53:55 2026 +0000 URL: https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=677f4508
crossdev: Only delete exact matches when deleting categories This prevents things like `crossdev -C arm-softfloat-linux-musl` deleting the cross-arm-softfloat-linux-musleabi category. Closes: https://bugs.gentoo.org/970738 Signed-off-by: Ron Nazarov <ron <AT> noisytoot.org> Signed-off-by: Sam James <sam <AT> gentoo.org> crossdev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crossdev b/crossdev index 2062145..1c39dfa 100755 --- a/crossdev +++ b/crossdev @@ -727,7 +727,7 @@ uninstall() { rm -r "${CROSSDEV_OVERLAY}"/${CROSSDEV_OVERLAY_CATEGORY} # if we remove all the package in the category, # might as well remove the category itself - sed -e "/${CROSSDEV_OVERLAY_CATEGORY}/d" \ + sed -e "/^${CROSSDEV_OVERLAY_CATEGORY}$/d" \ -i "${CROSSDEV_OVERLAY}"/profiles/categories fi # If profiles/categories is empty, see if we can remove the output overlay entirely
