commit:     cb92438c9c2d66cb791a3f194d77353d7a5f28e7
Author:     Artemis Everfree <artemis <AT> artemis <DOT> sh>
AuthorDate: Tue Jan 17 21:59:14 2023 +0000
Commit:     Artemis Everfree <artemis <AT> artemis <DOT> sh>
CommitDate: Tue Jan 17 22:01:59 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cb92438c

sys-apps/openSeaChest: if src layout changes, die

add `die` to `mv` commands, and remove the mkdir. if the subprojects
directory stops existing, the ebuild needs to be updated anyhow.

Signed-off-by: Artemis Everfree <artemis <AT> artemis.sh>

 sys-apps/openSeaChest/openSeaChest-22.07.ebuild | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/sys-apps/openSeaChest/openSeaChest-22.07.ebuild 
b/sys-apps/openSeaChest/openSeaChest-22.07.ebuild
index 0ba9b5dc4..32b369400 100644
--- a/sys-apps/openSeaChest/openSeaChest-22.07.ebuild
+++ b/sys-apps/openSeaChest/openSeaChest-22.07.ebuild
@@ -26,15 +26,14 @@ src_prepare() {
        default
 
        # Move over submodules, because the upstream tar doesn't have them.
-       mkdir -p "${S}"/'subprojects'
        rmdir "${S}"/'subprojects/opensea-common' || die
-       mv "${WORKDIR}"/'Seagate-opensea-common-a2155bb' 
"${S}"/'subprojects/opensea-common'
+       mv "${WORKDIR}"/'Seagate-opensea-common-a2155bb' 
"${S}"/'subprojects/opensea-common' || die
        rmdir "${S}"/'subprojects/opensea-operations' || die
-       mv "${WORKDIR}"/'Seagate-opensea-operations-f9eab78' 
"${S}"/'subprojects/opensea-operations'
+       mv "${WORKDIR}"/'Seagate-opensea-operations-f9eab78' 
"${S}"/'subprojects/opensea-operations' || die
        rmdir "${S}"/'subprojects/opensea-transport' || die
-       mv "${WORKDIR}"/'Seagate-opensea-transport-f09d599' 
"${S}"/'subprojects/opensea-transport'
+       mv "${WORKDIR}"/'Seagate-opensea-transport-f09d599' 
"${S}"/'subprojects/opensea-transport' || die
        rmdir "${S}"/'subprojects/wingetopt' || die
-       mv "${WORKDIR}"/'Seagate-wingetopt-a8c80ad' 
"${S}"/'subprojects/wingetopt'
+       mv "${WORKDIR}"/'Seagate-wingetopt-a8c80ad' 
"${S}"/'subprojects/wingetopt' || die
 }
 
 src_configure() {

Reply via email to