summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2016-10-09 22:53:14 +0200
committerMichael Palimaka <kensington@gentoo.org>2016-11-10 02:23:55 +1100
commitcbdfd560b7178ac52b1c04baeed6e5a88166f445 (patch)
tree27745ba7976262328999eb7c174cbd974ed56ce1 /eclass/kde5.eclass
parentdev-util/molecule-plugins: revision bump (diff)
downloadgentoo-cbdfd560b7178ac52b1c04baeed6e5a88166f445.tar.gz
gentoo-cbdfd560b7178ac52b1c04baeed6e5a88166f445.tar.bz2
gentoo-cbdfd560b7178ac52b1c04baeed6e5a88166f445.zip
kde5.eclass: Take care of empty po directory shipped by upstream
Uncovered by dev-libs/kreport-3.0.0.
Diffstat (limited to 'eclass/kde5.eclass')
-rw-r--r--eclass/kde5.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index e2a42e044cd0..47e3d4624efb 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -540,7 +540,7 @@ EOF
if [[ -e CMakeLists.txt ]] ; then
cmake_comment_add_subdirectory ${lang}
fi
- elif ! has ${lang/.po/} ${LINGUAS} ; then
+ elif [[ -f ${lang} ]] && ! has ${lang/.po/} ${LINGUAS} ; then
if [[ ${lang} != CMakeLists.txt && ${lang} != ${PN}.pot ]] ; then
rm ${lang} || die
fi