summaryrefslogtreecommitdiff
path: root/FS/FS/Misc.pm
diff options
context:
space:
mode:
authorivan <ivan>2011-04-14 00:11:04 +0000
committerivan <ivan>2011-04-14 00:11:04 +0000
commit2dd074562d746f164deb35cad749b738e4020634 (patch)
treecb730ded665bd6b46b6a5c5671daeb54121ab0ed /FS/FS/Misc.pm
parent4dc684a8230566a97e8838b2ffcaf4637a80e52a (diff)
check failure of pslatex by presence of resulting .dvi file rather than exit status, eliminates spurious pslatex errors, RT#12454
Diffstat (limited to 'FS/FS/Misc.pm')
-rw-r--r--FS/FS/Misc.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/FS/FS/Misc.pm b/FS/FS/Misc.pm
index 6108f77..a55f4a9 100644
--- a/FS/FS/Misc.pm
+++ b/FS/FS/Misc.pm
@@ -767,10 +767,13 @@ sub _pslatex {
local($SIG{CHLD}) = sub {};
run( \@cmd, '>'=>'/dev/null', '2>'=>'/dev/null', timeout($timeout) )
- or die "pslatex $file.tex failed; see $file.log for details?\n";
+ or warn "bad exit status from pslatex pass $_\n";
}
+ return if -e "$file.dvi" && -s "$file.dvi";
+ die "pslatex $file.tex failed; see $file.log for details?\n";
+
}
=item print ARRAYREF