diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-18 13:08:48 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-19 12:24:05 +0100 |
commit | 7d674820958be3a7051ea619effe1a6061d9cbe2 (patch) | |
tree | 5ca9163652717746c8c79a88dbd0bcb047eea558 /meta/recipes-qt | |
parent | ca30b6587841f5e9a42aaedb8e0b89ff5a4a6a37 (diff) | |
download | openembedded-core-7d674820958be3a7051ea619effe1a6061d9cbe2.tar.gz openembedded-core-7d674820958be3a7051ea619effe1a6061d9cbe2.tar.bz2 openembedded-core-7d674820958be3a7051ea619effe1a6061d9cbe2.zip |
Remove a number of unneeded import os/bb calls
The bb and os modules are always imported so having these extra import calls
are a waste of space/execution time. They also set a bad example for people
copy and pasting code so clean them up.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-qt')
-rw-r--r-- | meta/recipes-qt/qt-apps/qmmp_0.5.2.bb | 1 | ||||
-rw-r--r-- | meta/recipes-qt/qt4/qt4.inc | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/meta/recipes-qt/qt-apps/qmmp_0.5.2.bb b/meta/recipes-qt/qt-apps/qmmp_0.5.2.bb index ebaced4247..390a826891 100644 --- a/meta/recipes-qt/qt-apps/qmmp_0.5.2.bb +++ b/meta/recipes-qt/qt-apps/qmmp_0.5.2.bb @@ -30,7 +30,6 @@ PACKAGES_DYNAMIC = "qmmp-plugin-* " python populate_packages_prepend () { - import os qmmp_libdir = d.expand('${libdir}/qmmp') gd = d.expand('${D}/${libdir}/qmmp') plug_dirs = os.listdir(gd) diff --git a/meta/recipes-qt/qt4/qt4.inc b/meta/recipes-qt/qt4/qt4.inc index 3f61a20a2c..df70e09918 100644 --- a/meta/recipes-qt/qt4/qt4.inc +++ b/meta/recipes-qt/qt4/qt4.inc @@ -38,8 +38,6 @@ QT_LIB_NAMES = "Qt3Support QtAssistantClient QtCLucene QtCore QtDBus QtDesigner QT_EXTRA_LIBS = "pvrQWSWSEGL" python __anonymous () { - import bb - lib_packages = [] dev_packages = [] dbg_packages = [] @@ -280,7 +278,7 @@ python populate_packages_prepend() { phrasebook_dir = d.expand('${datadir}/${QT_DIR_NAME}/phrasebooks/') phrasebook_name = d.expand('${QT_BASE_NAME}-phrasebook-%s') - import os; + if os.path.exists("%s%s" % (d.expand('${D}'), phrasebook_dir)): do_split_packages(d, phrasebook_dir, '^(.*)\.qph$', phrasebook_name, '${PN} phrasebook for %s', extra_depends='' ) else: |