*** empty log message ***
authorgc <gc>
Sun, 24 Feb 2008 22:45:30 +0000 (22:45 +0000)
committergc <gc>
Sun, 24 Feb 2008 22:45:30 +0000 (22:45 +0000)
bin/booh-backend

index 1412c8452e677f3ed4c172fb275d79b2c7889959..6b0e6d09bcc75cee8acb8b25b9201134fbad09bb 100755 (executable)
@@ -807,7 +807,7 @@ def walk_source_dir
                     }
                     to_del = Dir.entries(dest_dir).find_all { |e| !File.directory?(File.join(dest_dir, e)) && !rightful_images.include?(e) } - themestuff - themestuff_root
                     if to_del.size > 0
-                        File.delete(to_del.collect { |e| File.join(dest_dir, e) })
+                        File.delete(*to_del.collect { |e| File.join(dest_dir, e) })
                     end
                 end
                 
@@ -937,7 +937,7 @@ def walk_source_dir
             to_del = Dir.entries(dest_dir).find_all { |e| !File.directory?(File.join(dest_dir, e)) && !all_elements.include?(e) && e !~ /^thumbnails-\w+\.jpg/ } - themestuff - themestuff_root
             if to_del.size > 0
                 msg 3, _("\tcleaning up: #{to_del.join(', ')}")
-                File.delete(to_del.collect { |e| File.join(dest_dir, e) })
+                File.delete(*to_del.collect { |e| File.join(dest_dir, e) })
             end
 
             #- copy any resource file that goes with the theme (css, images..)