diff --git a/games-emulation/dolphin/dolphin-5.0_p20220520.ebuild b/games-emulation/dolphin/dolphin-5.0_p20220520.ebuild index 582306b2f5a33..d01848ded2417 100644 --- a/games-emulation/dolphin/dolphin-5.0_p20220520.ebuild +++ b/games-emulation/dolphin/dolphin-5.0_p20220520.ebuild @@ -117,7 +117,7 @@ declare -A KEEP_BUNDLED=( ) src_prepare() { - if use mgba; then + if use mgba && [[ ${PV} != *9999 ]]; then rmdir Externals/mGBA/mgba || die mv "${WORKDIR}/mgba-${MGBA_COMMIT}" Externals/mGBA/mgba || die fi diff --git a/games-emulation/dolphin/dolphin-9999.ebuild b/games-emulation/dolphin/dolphin-9999.ebuild index 69da69fee18f2..d888afe15b4d3 100644 --- a/games-emulation/dolphin/dolphin-9999.ebuild +++ b/games-emulation/dolphin/dolphin-9999.ebuild @@ -117,7 +117,7 @@ declare -A KEEP_BUNDLED=( ) src_prepare() { - if use mgba; then + if use mgba && [[ ${PV} != *9999 ]]; then rmdir Externals/mGBA/mgba || die mv "${WORKDIR}/mgba-${MGBA_COMMIT}" Externals/mGBA/mgba || die fi