aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-10-27 05:19:31 -0400
committerMike Frysinger <vapier@gentoo.org>2021-10-27 05:19:31 -0400
commitbec5fd6a5597f736a868e79017f99b5bc79a9dbf (patch)
tree5ab7e5f33ac5ac1c0c8725b3a7a4a680039c5915
parentcrossdev: add command-line options to override toolchain packages (diff)
downloadcrossdev-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-xcrossdev3
1 files changed, 3 insertions, 0 deletions
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,