1 |
commit: ad09a180ae467a0eaf1da10e56adfb064b42691a |
2 |
Author: Michael Haubenwallner <haubi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 12 07:23:17 2019 +0000 |
4 |
Commit: Michael Haubenwallner <haubi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 12 07:35:17 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad09a180 |
7 |
|
8 |
prefix/cygwin/profile.bashrc: preserve new dll list for rebase |
9 |
|
10 |
Do not overwrite the being merged new package's dll list for rebase with |
11 |
the being removed old package's dll list for just getting unmerged. |
12 |
This likely is the cause of some Prefix bootstraps to hang on Cygwin. |
13 |
Signed-off-by: Michael Haubenwallner <haubi <AT> gentoo.org> |
14 |
|
15 |
profiles/prefix/windows/cygwin/profile.bashrc | 11 ++--------- |
16 |
1 file changed, 2 insertions(+), 9 deletions(-) |
17 |
|
18 |
diff --git a/profiles/prefix/windows/cygwin/profile.bashrc b/profiles/prefix/windows/cygwin/profile.bashrc |
19 |
index aecfd9adb7c..9694edc101d 100644 |
20 |
--- a/profiles/prefix/windows/cygwin/profile.bashrc |
21 |
+++ b/profiles/prefix/windows/cygwin/profile.bashrc |
22 |
@@ -198,21 +198,14 @@ cygwin-rebase-merge() { |
23 |
} |
24 |
|
25 |
cygwin-rebase-post_pkg_prerm() { |
26 |
- # The pending list is installed as part of the package, but |
27 |
- # the merged list is not. Move from merged back to pending, |
28 |
- # in case the unmerge fails... |
29 |
- local pendingdir=$(cygwin-rebase-get_pendingdir) |
30 |
+ # The pending list is registered as being installed with the package, but |
31 |
+ # the merged list is not. Just remove the unregistered one. |
32 |
local mergeddir=$(cygwin-rebase-get_mergeddir) |
33 |
local listname=$(cygwin-rebase-get_listname) |
34 |
( |
35 |
set -e |
36 |
cd "${EROOT}" |
37 |
[[ -w ./${mergeddir}/. ]] |
38 |
- [[ -w ./${pendingdir}/. ]] |
39 |
- if [[ -s ./${mergeddir}/${listname} ]] |
40 |
- then |
41 |
- mv -f "./${mergeddir}/${listname}" "./${pendingdir}/${listname}" || : |
42 |
- fi |
43 |
rm -f "./${mergeddir}/${listname}" |
44 |
) |
45 |
} |