kde5.eclass: Don't remove existing po/${PN}.pot file
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Fri, 8 Jul 2016 14:00:56 +0000 (16:00 +0200)
committerMichael Palimaka <kensington@gentoo.org>
Wed, 31 Aug 2016 14:23:26 +0000 (00:23 +1000)
eclass/kde5.eclass

index 5423c385c76826e282666e6a3021af258182f21f..887a84bd9f6914ab8d7034bf7a7cf7c2cba9be9a 100644 (file)
@@ -462,7 +462,7 @@ EOF
                                        cmake_comment_add_subdirectory ${lang}
                                fi
                        elif ! has ${lang/.po/} ${LINGUAS} ; then
-                               if [[ ${lang} != CMakeLists.txt ]] ; then
+                               if [[ ${lang} != CMakeLists.txt && ${lang} != ${PN}.pot ]] ; then
                                        rm ${lang} || die
                                fi
                        fi