packages/qt4/qt_packaging.inc: Fix the splitting of the translation packages
authorHolger Freyther <zecke@selfish.org>
Mon, 21 Jan 2008 21:39:34 +0000 (21:39 +0000)
committerHolger Freyther <zecke@selfish.org>
Mon, 21 Jan 2008 21:39:34 +0000 (21:39 +0000)
    The variable inside the package name did not get expanded, let us expand
    it ourselves.

packages/qt4/qt_packaging.inc

index 63d314c..ca5e93b 100644 (file)
@@ -133,8 +133,9 @@ FILES_${QT_BASE_NAME}-demos                = "${bindir}/qtdemo ${bindir}/${QT_DI
 FILES_${QT_BASE_NAME}-fonts                = "${libdir}/fonts"
 
 python populate_packages_prepend() {
-       translationdir = bb.data.expand('${datadir}/${QT_DIR_NAME}/translations/', d)
-       do_split_packages(d, translationdir, '^qt_(.*)\.qm$', '${QT_DIR_NAME}-translation-%s', '{PN} translation for %s', extra_depends='' )
+       translation_dir = bb.data.expand('${datadir}/${QT_DIR_NAME}/translations/', d)
+       translation_name = bb.data.expand('${QT_DIR_NAME}-translation-%s', d)
+       do_split_packages(d, translation_dir, '^qt_(.*)\.qm$', translation_name, '{PN} translation for %s', extra_depends='' )
 }