*** empty log message ***
authorgc <gc>
Mon, 25 Feb 2008 22:58:28 +0000 (22:58 +0000)
committergc <gc>
Mon, 25 Feb 2008 22:58:28 +0000 (22:58 +0000)
bin/booh

index 34a3792b97a36582a02f1d208f400a4c61fc1eb7..22a050915e016f137eb611cb22e74b02d75ad505 100755 (executable)
--- a/bin/booh
+++ b/bin/booh
@@ -818,7 +818,9 @@ or too bright. Drag the slider below the image.
 end
 
 def gen_real_thumbnail_core(type, origfile, destfile, xmldir, size, infotype)
-    File.delete(destfile)
+    if File.exists?(destfile)
+        File.delete(destfile)
+    end
     #- type can be 'element' or 'subdir'
     if type == 'element'
         gen_thumbnails_element(origfile, xmldir, false, [ { 'filename' => destfile, 'size' => size } ])