diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-08-04 21:02:12 +0100 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-08-12 13:03:58 +0100 |
commit | f6cb9999264965773ef9a4989d8093443cab780e (patch) | |
tree | 3911eb114543f7757c31ed1c0d18154b1ec4f17c /recipes-opie | |
parent | 9e8baa7924dfdea3d6bcf2d2f3ce8aad6663ef2e (diff) | |
download | meta-opie-f6cb9999264965773ef9a4989d8093443cab780e.tar.gz |
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 <paul.eggleton@linux.intel.com>
Diffstat (limited to 'recipes-opie')
-rw-r--r-- | recipes-opie/opie-taskbar/opie-taskbar-images.inc | 6 |
1 files changed, 4 insertions, 2 deletions
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 |