commit:     cd2a86366e58f9c483910b7081544350c1fa7f78
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Mar  4 17:48:51 2017 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Mar  4 18:14:37 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd2a8636

app-misc/recoll: Show upgrade message in pkg_setup on occasion

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 app-misc/recoll/recoll-1.22.4.ebuild | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/app-misc/recoll/recoll-1.22.4.ebuild 
b/app-misc/recoll/recoll-1.22.4.ebuild
index 277e650de90..6c339c6b1be 100644
--- a/app-misc/recoll/recoll-1.22.4.ebuild
+++ b/app-misc/recoll/recoll-1.22.4.ebuild
@@ -47,6 +47,14 @@ RDEPEND="${COMMON_DEPEND}
 "
 
 pkg_setup() {
+       if has_version "<app-misc/recoll-1.20"; then
+               einfo "Installing ${PV} over an 1.19 index is possible,"
+               einfo "but there have been small changes in the way"
+               einfo "compound words are indexed. So it is best to reset"
+               einfo "the index. The best method to reset the index is to"
+               einfo "quit all recoll programs and delete the index directory"
+               einfo "rm -rf ~/.recoll/xapiandb, then start recoll or 
recollindex."
+       fi
        if use inotify; then
                CONFIG_CHECK="~INOTIFY_USER"
                check_extra_config
@@ -94,14 +102,6 @@ src_install() {
 }
 
 pkg_postinst() {
-
-       einfo "Installing 1.22 over an 1.19 index is possible,"
-       einfo "but there have been small changes in the way"
-       einfo "compound words are indexed. So it is best to reset"
-       einfo "the index. The best method to reset the index is to"
-       einfo "quit all recoll programs and delete the index directory"
-       einfo "rm -rf ~/.recoll/xapiandb, then start recoll or recollindex"
-       einfo ""
        einfo "In order to extract the full functionality of "
        einfo "recoll, the following packages should be installed "
        einfo "to get the corresponding document support."

Reply via email to