From 608a46b7ee08562f417ca2b83c0a2b69d3c269d8 Mon Sep 17 00:00:00 2001 From: kos Date: Wed, 22 May 2013 11:22:26 +0900 Subject: [PATCH] [openwebif] remove unused RC picture. --- .../enigma2/enigma2-plugin-extensions-openwebif.bb | 30 +++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/recipes/enigma2/enigma2-plugin-extensions-openwebif.bb b/recipes/enigma2/enigma2-plugin-extensions-openwebif.bb index 12abe2e..14ff0ba 100644 --- a/recipes/enigma2/enigma2-plugin-extensions-openwebif.bb +++ b/recipes/enigma2/enigma2-plugin-extensions-openwebif.bb @@ -9,7 +9,7 @@ RDEPENDS_${PN} = "python-cheetah python-json python-unixadmin python-misc python inherit gitpkgv PV = "0.1+git${SRCPV}" PKGV = "0.1+git${GITPKGV}" -PR = "r0.75" +PR = "r0.76" require openplugins.inc @@ -27,5 +27,33 @@ do_install() { cp -rp ${S}/plugin/* ${D}${PLUGINPATH} } +python do_package_prepend () { + boxtypes = [ + ('bm750', 'duo.jpg', 'vu_normal.png'), + ('vuduo2', 'duo2.jpg', 'vu_ultimo.png'), + ('vusolo', 'solo.jpg', 'vu_normal.png'), + ('vusolo2', 'solo2.jpg', 'vu_ultimo.png'), + ('vuultimo', 'ultimo.jpg', 'vu_ultimo.png'), + ('vuuno', 'uno.jpg', 'vu_normal.png'), + ] + import os + top = '${D}${PLUGINPATH}/public/images/' + target_box = 'unknown.jpg' + target_remote = 'ow_remote.png' + for x in boxtypes: + if x[0] == '${MACHINE}': + target_box = x[1] + target_remote = x[2] + break + for root, dirs, files in os.walk(top + 'boxes', topdown=False): + for name in files: + if target_box != name and name != 'unknown.jpg': + os.remove(os.path.join(root, name)) + for root, dirs, files in os.walk(top + 'remotes', topdown=False): + for name in files: + if target_remote != name and name != 'ow_remote.png': + os.remove(os.path.join(root, name)) +} + FILES_${PN} = "${PLUGINPATH}" PACKAGES = ${PN} -- 2.7.4