commit:     3642ed3997a16330dc1c861d354b7fb5f8941771
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 16 17:18:38 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sun Feb 16 17:24:45 2025 +0000
URL:        https://gitweb.gentoo.org/proj/eselect-wine.git/commit/?id=3642ed39

wine.eselect: update postrm migration example

The package manager spec (at least for current EAPI=8) does not
guarantee that IDEPEND will be available in pre/postrm.

Updating for what it's worth anyway, not overly important (aka not
worth a release) given dying in "post"rm is not much of an issue
compared to "pre"rm. The latter aborts removal, while the former
is just noisy on failure. Odds are nobody is seeing this message
anymore too unless trying to use very outdated broken ebuilds.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 wine.eselect | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/wine.eselect b/wine.eselect
index e8ce744..bb5d4c9 100644
--- a/wine.eselect
+++ b/wine.eselect
@@ -374,7 +374,9 @@ do_register() {
                eselect wine update --if-unset || die
        }
        pkg_postrm() { # /not/ prerm
-               eselect wine update --if-unset || die
+               if has_version -b app-eselect/eselect-wine; then
+                       eselect wine update --if-unset || die
+               fi
        }
 ' >&2
 }

Reply via email to