From 2cc158f648a410550a4899030c91d7137441f224 Mon Sep 17 00:00:00 2001 From: gc Date: Mon, 17 Mar 2008 22:34:42 +0000 Subject: [PATCH] *** empty log message *** --- bin/booh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/booh b/bin/booh index 663938f..d7aae44 100755 --- a/bin/booh +++ b/bin/booh @@ -1139,10 +1139,9 @@ def add_thumbnail(autotable, filename, type, thumbnail_img, caption) #- remove out of sync images dest_img_base = build_full_dest_filename(filename).sub(/\.[^\.]+$/, '') for sizeobj in $images_size - for file in [ "#{dest_img_base}-#{sizeobj['fullscreen']}.jpg", "#{dest_img_base}-#{sizeobj['thumbnails']}.jpg" ] - if File.exists?(file) - File.delete(file) - end + #- cannot use sizeobj because panoramic images will have a larger width + Dir.glob("#{dest_img_base}-*.jpg") do |file| + File.delete(file) end end -- 2.30.4