1. renamed pkg_postinstall to pkg_postinst (wrt #650096)
2. has_version used in conjunction with einfo
Closes: https://bugs.gentoo.org/650096
Closes: https://github.com/gentoo/gentoo/pull/7413
Package-Manager: Portage-2.3.40, Repoman-2.3.9
if use zsh-completion ; then
insinto /usr/share/zsh/site-functions
- doins src/github.com/knqyf263/pet/misc/completions/zsh/_${PN}
+ doins src/github.com/knqyf263/pet/misc/completions/zsh/_pet
fi
}
-pkg_postinstall() {
- einfo "You should consider to install app-shells/peco to be able to use selector command"
+pkg_postinst() {
+ if ! has_version app-shells/peco ; then
+ einfo "You should consider to install app-shells/peco"
+ einfo "to be able to use selector command"
+ fi
}