summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2016-01-26 23:03:11 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2016-01-26 23:03:11 +0100
commit03cbcf41ed20e4c3825499fb6cbc5a32c2ac94ac (patch)
tree89707f5ed2a25ff3422feb9533d8841b31ef106e
parent4c2b52bd8b6e55ad2b1db269829521b446365960 (diff)
parenta37996910e7914fc3a999ca63c449132a49fd300 (diff)
downloadorg-mode-03cbcf41ed20e4c3825499fb6cbc5a32c2ac94ac.tar.gz
Merge branch 'maint'
-rw-r--r--lisp/ox-latex.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 7f889d7..8475c5b 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -3578,7 +3578,10 @@ Return PDF file name or an error if it couldn't be produced."
;; Check for process failure. Provide collected errors if
;; possible.
(if (or (not (file-exists-p pdffile))
- (time-less-p (nth 5 (file-attributes pdffile)) time))
+ ;; Only compare times up to whole seconds as some filesystems
+ ;; (e.g. HFS+) do not retain any finer granularity.
+ (time-less-p (org-sublist (nth 5 (file-attributes pdffile)) 1 2)
+ (org-sublist time 1 2)))
(error (format "PDF file %s wasn't produced" pdffile))
;; Else remove log files, when specified, and signal end of
;; process to user, along with any error encountered.