From f6cb9999264965773ef9a4989d8093443cab780e Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Sat, 4 Aug 2012 21:02:12 +0100 Subject: opie-taskbar-images: allow re-exec of do_install If do_install is rerun a second time we don't want it to fail because the image files have already been renamed, so just skip the rename in that case. Signed-off-by: Paul Eggleton --- recipes-opie/opie-taskbar/opie-taskbar-images.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'recipes-opie') diff --git a/recipes-opie/opie-taskbar/opie-taskbar-images.inc b/recipes-opie/opie-taskbar/opie-taskbar-images.inc index 68cb0a2..ee8581e 100644 --- a/recipes-opie/opie-taskbar/opie-taskbar-images.inc +++ b/recipes-opie/opie-taskbar/opie-taskbar-images.inc @@ -39,8 +39,10 @@ do_install() { install -d ${D}${palmtopdir}/pics/launcher # Allow us to be lazy with the loop below - mv ${WORKDIR}/pics/launcher/firstuse.jpg ${WORKDIR}/pics/launcher/firstuse-240x320.jpg - mv ${WORKDIR}/pics/launcher/opie-background.jpg ${WORKDIR}/pics/launcher/opie-background-240x320.jpg + if [ -f ${WORKDIR}/pics/launcher/firstuse.jpg ] ; then + mv ${WORKDIR}/pics/launcher/firstuse.jpg ${WORKDIR}/pics/launcher/firstuse-240x320.jpg + mv ${WORKDIR}/pics/launcher/opie-background.jpg ${WORKDIR}/pics/launcher/opie-background-240x320.jpg + fi for res in ${AVAILABLE_SIZES}; do install -m 0644 ${WORKDIR}/pics/launcher/firstuse-${res}.jpg ${D}${palmtopdir}/pics/launcher/firstuse-${res}.jpg -- cgit 1.2.3-korg