1 |
commit: 86d3e174d2581952f280e073b474b2e2451ee72e |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 2 19:10:52 2023 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 3 05:21:02 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86d3e174 |
7 |
|
8 |
app-eselect/eselect-wine: don't fail if migration file exists |
9 |
|
10 |
May have been left there if other preinst commands failed |
11 |
(like eselect wine unset --all which can be fickle). |
12 |
|
13 |
Alternatively could cp -f, but best avoid clobbering more |
14 |
files we don't own as much as possible. Guess a better |
15 |
approach would've been to put it in ${T} and tell eselect |
16 |
where to find it in postinst but at this point not going |
17 |
to worry about due-to-be-removed cruft. |
18 |
|
19 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
20 |
|
21 |
app-eselect/eselect-wine/eselect-wine-2.0.2.ebuild | 6 ++++-- |
22 |
1 file changed, 4 insertions(+), 2 deletions(-) |
23 |
|
24 |
diff --git a/app-eselect/eselect-wine/eselect-wine-2.0.2.ebuild b/app-eselect/eselect-wine/eselect-wine-2.0.2.ebuild |
25 |
index 953f7e1c910d..dc64574f7852 100644 |
26 |
--- a/app-eselect/eselect-wine/eselect-wine-2.0.2.ebuild |
27 |
+++ b/app-eselect/eselect-wine/eselect-wine-2.0.2.ebuild |
28 |
@@ -1,4 +1,4 @@ |
29 |
-# Copyright 2022 Gentoo Authors |
30 |
+# Copyright 2022-2023 Gentoo Authors |
31 |
# Distributed under the terms of the GNU General Public License v2 |
32 |
|
33 |
EAPI=8 |
34 |
@@ -43,8 +43,10 @@ src_install() { |
35 |
pkg_preinst() { |
36 |
if has_version '<app-eselect/eselect-wine-2'; then |
37 |
# keep copy of still-set 'active' to auto-select same slots |
38 |
- [[ ! -e ${EROOT}/etc/eselect/wine/active ]] || |
39 |
+ if [[ -e ${EROOT}/etc/eselect/wine/active && |
40 |
+ ! -e ${EROOT}/etc/eselect/wine/eselect-wine-migration ]]; then |
41 |
cp "${EROOT}"/etc/eselect/wine/{active,eselect-wine-migration} || die |
42 |
+ fi |
43 |
|
44 |
# managed differently, need cleanup |
45 |
eselect wine unset --all || die |