mirror of
https://github.com/correl/melpa.git
synced 2024-11-14 19:19:32 +00:00
parent
da15f0e6c7
commit
58bf468f42
1 changed files with 5 additions and 2 deletions
|
@ -497,7 +497,7 @@ The file is written to `package-build-working-dir'."
|
|||
(if (re-search-forward "^;;;* *Version: *" nil t)
|
||||
(kill-whole-line)
|
||||
(forward-line))
|
||||
(insert (format ";;; Version: %s" version))
|
||||
(insert (format ";; Version: %s" version))
|
||||
(newline))
|
||||
|
||||
(defun pb/get-package-info (file-path)
|
||||
|
@ -704,7 +704,10 @@ FILES is a list of (SOURCE . DEST) relative filepath pairs."
|
|||
cfg)))
|
||||
(when (file-exists-p pkg-target)
|
||||
(delete-file pkg-target t))
|
||||
(copy-file pkg-source pkg-target)
|
||||
(with-temp-buffer
|
||||
(insert-file-contents-literally pkg-source)
|
||||
(pb/update-or-insert-version version)
|
||||
(write-file pkg-target))
|
||||
|
||||
(pb/write-pkg-readme (and (> (length pkg-info) 4) (aref pkg-info 4))
|
||||
file-name)
|
||||
|
|
Loading…
Reference in a new issue