commit: 5bf9a789dd6feb0daf93740a58c9d56ac9bd3f40
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 6 08:04:34 2026 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jan 6 08:05:23 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bf9a789
app-misc/tmux: fix pkg_postinst for non-3.6 upgrades
As reported by ulm, this would previously only fire on the else branch
if it's a new install. I'm not sure why I did that, I must've changed
my mind partway through because it clearly had that behaviour.
Signed-off-by: Sam James <sam <AT> gentoo.org>
app-misc/tmux/tmux-3.6a.ebuild | 2 +-
app-misc/tmux/tmux-9999.ebuild | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/app-misc/tmux/tmux-3.6a.ebuild b/app-misc/tmux/tmux-3.6a.ebuild
index 492a8c88b62e..c5bce8180952 100644
--- a/app-misc/tmux/tmux-3.6a.ebuild
+++ b/app-misc/tmux/tmux-3.6a.ebuild
@@ -105,7 +105,7 @@ pkg_postinst() {
ewarn "Please restart all running tmux sessions
(client+server)."
ewarn "3.6a has an incompatible protocol change, so it is
especially important:"
ewarn "
https://github.com/tmux/tmux/issues/4699#issue-3666479306"
- elif [[ ! ${REPLACING_VERSIONS} ]]; then
+ elif ver_replacing -lt ${PV} ; then
# https://github.com/tmux/tmux/issues/4699#issue-3666479306
# > Note that it is very important to restart tmux entirely
after upgrading.
# > This is particularly important with this release because
one of the libraries
diff --git a/app-misc/tmux/tmux-9999.ebuild b/app-misc/tmux/tmux-9999.ebuild
index 5fca43064496..a74d88bdf54b 100644
--- a/app-misc/tmux/tmux-9999.ebuild
+++ b/app-misc/tmux/tmux-9999.ebuild
@@ -102,7 +102,7 @@ pkg_postinst() {
ewarn "Please restart all running tmux sessions
(client+server)."
ewarn "3.6a has an incompatible protocol change, so it is
especially important:"
ewarn "
https://github.com/tmux/tmux/issues/4699#issue-3666479306"
- elif [[ ! ${REPLACING_VERSIONS} ]]; then
+ elif ver_replacing -lt ${PV} ; then
# https://github.com/tmux/tmux/issues/4699#issue-3666479306
# > Note that it is very important to restart tmux entirely
after upgrading.
# > This is particularly important with this release because
one of the libraries