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