*** empty log message ***
authorgc <gc>
Sun, 23 Apr 2006 14:38:12 +0000 (14:38 +0000)
committergc <gc>
Sun, 23 Apr 2006 14:38:12 +0000 (14:38 +0000)
bin/booh-backend

index 8365e4ce00253ee353d59fd79f44769f38ad236a..b40d6f928756a51b0a286a0eaac427526c38b349 100755 (executable)
@@ -704,7 +704,8 @@ def walk_source_dir
                 else
                     type = entry2type(file)
                     if type && !xmldir.elements["#{type}[@filename='#{utf8(file)}']"]
-                        if $commentsformat && type == 'image'
+                        #- hack: don't run identify (which is slow) if format only contains default %t
+                        if $commentsformat && type == 'image' && $commentsformat != '%t'
                             comment = utf8(`identify -format "#{$commentsformat}" '#{dir}/#{file}'`.chomp.sub(/\.$/, ''))
                         else
                             comment = utf8cut(file.sub(/\.[^\.]+$/, ''), 18)