Skip to content

Commit

Permalink
Revert "crossdev: clean world file on uninstall"
Browse files Browse the repository at this point in the history
This hack is unnecessary if we use emerge for uninstalls instead.

Reverts: bec5fd6
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
  • Loading branch information
floppym committed Nov 18, 2022
1 parent 10a87d6 commit f7af005
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions crossdev
Expand Up @@ -584,9 +584,6 @@ 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,
Expand Down

0 comments on commit f7af005

Please sign in to comment.