diff options
author | Michael Haubenwallner <haubi@gentoo.org> | 2019-08-12 09:23:17 +0200 |
---|---|---|
committer | Michael Haubenwallner <haubi@gentoo.org> | 2019-08-12 09:35:17 +0200 |
commit | ad09a180ae467a0eaf1da10e56adfb064b42691a (patch) | |
tree | a222ace70ba091ae085629a711cd06fa2afffa87 /profiles | |
parent | net-analyzer/cacti-spine: Version 1.2.5 (diff) | |
download | gentoo-ad09a180ae467a0eaf1da10e56adfb064b42691a.tar.gz gentoo-ad09a180ae467a0eaf1da10e56adfb064b42691a.tar.bz2 gentoo-ad09a180ae467a0eaf1da10e56adfb064b42691a.zip |
prefix/cygwin/profile.bashrc: preserve new dll list for rebase
Do not overwrite the being merged new package's dll list for rebase with
the being removed old package's dll list for just getting unmerged.
This likely is the cause of some Prefix bootstraps to hang on Cygwin.
Signed-off-by: Michael Haubenwallner <haubi@gentoo.org>
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/prefix/windows/cygwin/profile.bashrc | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/profiles/prefix/windows/cygwin/profile.bashrc b/profiles/prefix/windows/cygwin/profile.bashrc index aecfd9adb7c0..9694edc101df 100644 --- a/profiles/prefix/windows/cygwin/profile.bashrc +++ b/profiles/prefix/windows/cygwin/profile.bashrc @@ -198,21 +198,14 @@ cygwin-rebase-merge() { } cygwin-rebase-post_pkg_prerm() { - # The pending list is installed as part of the package, but - # the merged list is not. Move from merged back to pending, - # in case the unmerge fails... - local pendingdir=$(cygwin-rebase-get_pendingdir) + # The pending list is registered as being installed with the package, but + # the merged list is not. Just remove the unregistered one. local mergeddir=$(cygwin-rebase-get_mergeddir) local listname=$(cygwin-rebase-get_listname) ( set -e cd "${EROOT}" [[ -w ./${mergeddir}/. ]] - [[ -w ./${pendingdir}/. ]] - if [[ -s ./${mergeddir}/${listname} ]] - then - mv -f "./${mergeddir}/${listname}" "./${pendingdir}/${listname}" || : - fi rm -f "./${mergeddir}/${listname}" ) } |