summaryrefslogtreecommitdiff
path: root/packages/qt4/qt_packaging.inc
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2007-12-25 00:56:32 +0000
committerHolger Freyther <zecke@selfish.org>2007-12-25 00:56:32 +0000
commit29a60a1ea256d4bd3f91946afbb97079be696b3b (patch)
tree66ad0d310af6c6d1034591b09efe8ac3a5e5c800 /packages/qt4/qt_packaging.inc
parente1311f8ec38ad3db4488887fe993987c66b8f79c (diff)
packages/qt4/qt_packaging.inc: Only install Qtopia translations if they exist.
Diffstat (limited to 'packages/qt4/qt_packaging.inc')
-rw-r--r--packages/qt4/qt_packaging.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/qt4/qt_packaging.inc b/packages/qt4/qt_packaging.inc
index d19c6f8295..46f578b64a 100644
--- a/packages/qt4/qt_packaging.inc
+++ b/packages/qt4/qt_packaging.inc
@@ -106,8 +106,11 @@ FILES_${PN}-dev += "${bindir}/rcc ${bindir}/uic* ${bindir}/moc ${b
FILES_${PN}-dbg += "${bindir}/*/.debug ${plugindir}/.debug"
python populate_packages_prepend() {
- translationdir = bb.data.expand('${datadir}/qtopia/translations/', d)
- do_split_packages(d, translationdir, '^qt_(.*)\.qm$', 'qtopia-translation-%s', 'Qtopia translation for %s', extra_depends='' )
+ import os
+ if os.path.exists(bb.data.expand('${D}/${datadir}/qtopia/translationdir', d)):
+
+ translationdir = bb.data.expand('${datadir}/qtopia/translations/', d)
+ do_split_packages(d, translationdir, '^qt_(.*)\.qm$', 'qtopia-translation-%s', 'Qtopia translation for %s', extra_depends='' )
}