Sfoglia il codice sorgente

Allow publishing to overwrite files.

This important patch makes sure that `copy-file' is allowed to
overwrite at the target location.

Patch by Sebastian Rose.
Carsten Dominik 16 anni fa
parent
commit
0000d4c477
2 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 3 0
      lisp/ChangeLog
  2. 1 1
      lisp/org-publish.el

+ 3 - 0
lisp/ChangeLog

@@ -1,5 +1,8 @@
 2008-11-12  Carsten Dominik  <carsten.dominik@gmail.com>
 
+	* org-publish.el (org-publish-attachment): Allow publishing to
+	overwrite attachment files.
+
 	* org-agenda.el (org-agenda-timerange-leaders): New option.
 	(org-agenda-get-blocks): Use `org-agenda-timerange-leaders'.
 

+ 1 - 1
lisp/org-publish.el

@@ -537,7 +537,7 @@ See `org-publish-org-to' to the list of arguments."
   ;; make sure eshell/cp code is loaded
   (unless (file-directory-p pub-dir)
     (make-directory pub-dir t))
-  (copy-file filename pub-dir))
+  (copy-file filename pub-dir t))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;;; Publishing files, sets of files, and indices