diff options
Diffstat (limited to 'app-eselect/eselect-wine/eselect-wine-2.0.2.ebuild')
-rw-r--r-- | app-eselect/eselect-wine/eselect-wine-2.0.2.ebuild | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app-eselect/eselect-wine/eselect-wine-2.0.2.ebuild b/app-eselect/eselect-wine/eselect-wine-2.0.2.ebuild index 953f7e1c910d..dc64574f7852 100644 --- a/app-eselect/eselect-wine/eselect-wine-2.0.2.ebuild +++ b/app-eselect/eselect-wine/eselect-wine-2.0.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022 Gentoo Authors +# Copyright 2022-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -43,8 +43,10 @@ src_install() { pkg_preinst() { if has_version '<app-eselect/eselect-wine-2'; then # keep copy of still-set 'active' to auto-select same slots - [[ ! -e ${EROOT}/etc/eselect/wine/active ]] || + if [[ -e ${EROOT}/etc/eselect/wine/active && + ! -e ${EROOT}/etc/eselect/wine/eselect-wine-migration ]]; then cp "${EROOT}"/etc/eselect/wine/{active,eselect-wine-migration} || die + fi # managed differently, need cleanup eselect wine unset --all || die |