commit: bec5fd6a5597f736a868e79017f99b5bc79a9dbf Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> AuthorDate: Wed Oct 27 09:19:31 2021 +0000 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> CommitDate: Wed Oct 27 09:19:31 2021 +0000 URL: https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=bec5fd6a
crossdev: clean world file on uninstall Closes: https://bugs.gentoo.org/676490 Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org> crossdev | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crossdev b/crossdev index 6963d9d..ed75935 100755 --- a/crossdev +++ b/crossdev @@ -573,6 +573,9 @@ uninstall() { ewarn "Uninstalling target '${CTARGET}' ..." # clean out portage config files + if grep -qs "^cross-${CTARGET}/" "${EPREFIX}"/var/lib/portage/world ; then + sed -i "/^cross-${CTARGET}/d" "${EPREFIX}"/var/lib/portage/world + fi if [[ -d ${CROSSDEV_OVERLAY}/cross-${CTARGET} ]]; then rm -r "${CROSSDEV_OVERLAY}"/cross-${CTARGET} # if we remove all the package in the category,
