Skip to content

Commit

Permalink
dev-games/godot: give postinst elog about migration to 4
Browse files Browse the repository at this point in the history
Not super important given imagine devs would know this well, and need
to launch as "godot4" so won't be a surprise. But still won't hurt for
when this gets keyworded.

Signed-off-by: Ionen Wolkens <[email protected]>
  • Loading branch information
ionenwks committed Aug 30, 2022
1 parent 16bc6a3 commit 6af2413
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dev-games/godot/godot-4.0_alpha14.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -244,3 +244,13 @@ src_install() {
newins misc/dist/shell/_godot.zsh-completion _${s}
dosym _${s} /usr/share/zsh/site-functions/_${s}-runner
}

pkg_postinst() {
xdg_pkg_postinst

if [[ ! ${REPLACING_VERSIONS} ]] && has_version ${CATEGORY}/${PN}:3; then
elog
elog "Remember to make backups before opening any Godot <=3.x projects in Godot 4."
elog "Automated migration is only partial, and it would be difficult to revert."
fi
}

0 comments on commit 6af2413

Please sign in to comment.