From 5e5d143b94a6b5af35ef5028eea400f9ab4f73d7 Mon Sep 17 00:00:00 2001 From: gc Date: Sun, 23 Apr 2006 14:38:12 +0000 Subject: [PATCH] *** empty log message *** --- bin/booh-backend | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/booh-backend b/bin/booh-backend index 8365e4c..b40d6f9 100755 --- a/bin/booh-backend +++ b/bin/booh-backend @@ -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) -- 2.30.4