diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-10-27 05:19:31 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-10-27 05:19:31 -0400 |
commit | bec5fd6a5597f736a868e79017f99b5bc79a9dbf (patch) | |
tree | 5ab7e5f33ac5ac1c0c8725b3a7a4a680039c5915 | |
parent | crossdev: add command-line options to override toolchain packages (diff) | |
download | crossdev-bec5fd6a5597f736a868e79017f99b5bc79a9dbf.tar.gz crossdev-bec5fd6a5597f736a868e79017f99b5bc79a9dbf.tar.bz2 crossdev-bec5fd6a5597f736a868e79017f99b5bc79a9dbf.zip |
crossdev: clean world file on uninstall
Closes: https://bugs.gentoo.org/676490
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-x | crossdev | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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, |