summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-01-01 09:56:30 +0100
committerYorhel <git@yorhel.nl>2009-01-02 17:02:07 +0100
commit614f3a03fc1a9a1d61d294fbb8664db93f96ebdc (patch)
tree38a92e547344271eb694a30359b152eec2a87ff1 /util
parent92dd297131690ccb540d97b49e81c84c5830a14f (diff)
Another bugfix with the skin auto-update, when neither style.css nor boxbg.png are generated
Diffstat (limited to 'util')
-rwxr-xr-xutil/vndb.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/vndb.pl b/util/vndb.pl
index 335ad488..3d392839 100755
--- a/util/vndb.pl
+++ b/util/vndb.pl
@@ -96,10 +96,10 @@ sub readskins {
close $F;
next if !$skins{$n};
- my $css = -f "$f/style.css" && [stat "$f/style.css"]->[9];
- my $boxbg = -f "$f/boxbg.png" && [stat "$f/boxbg.png"]->[9];
+ my $css = -f "$f/style.css" && [stat "$f/style.css"]->[9] || 0;
+ my $boxbg = -f "$f/boxbg.png" && [stat "$f/boxbg.png"]->[9] || 0;
my $lastgen = $css < $boxbg ? $css : $boxbg;
- push @regen, $n if (!$lastgen && -x $f && ($css && -w "$f/style.css" || $boxbg && -w "$f/boxbg.png"))
+ push @regen, $n if (!$lastgen && -x $f && (!$css && !$boxbg || $css && -w "$f/style.css" || $boxbg && -w "$f/boxbg.png"))
|| ([stat "$f/conf"]->[9] > $lastgen || $lasttemplate > $lastgen) && -w "$f/style.css" && -w "$f/boxbg.png";
}
system "$ROOT/util/skingen.pl", @regen if @regen;