mirror of
https://github.com/correl/melpa.git
synced 2024-12-23 11:14:57 +00:00
Fix for files that don't properly end the comments section. It's OK
if it's redundant it goes away in the end.
This commit is contained in:
parent
91081a34dd
commit
05acbfa931
1 changed files with 11 additions and 6 deletions
|
@ -218,17 +218,22 @@
|
|||
(mapc 'package-build-archive pkgs)
|
||||
(package-build-dump-archive-contents))
|
||||
|
||||
(defun package-build-get-package-info (file-name)
|
||||
(when (file-exists-p file-name)
|
||||
(defun package-build-get-package-info (file-path)
|
||||
(when (file-exists-p file-path)
|
||||
(ignore-errors
|
||||
(save-window-excursion
|
||||
(find-file file-name)
|
||||
(find-file file-path)
|
||||
;; next two lines are a hack for some packages that aren't
|
||||
;; commented properly.
|
||||
(goto-char (point-max))
|
||||
(insert (concat "\n;;; " (file-name-nondirectory file-path) " ends here"))
|
||||
(print (buffer-substring-no-properties (point-min) (point-max)))
|
||||
(flet ((package-strip-rcs-id (str) "0"))
|
||||
(package-buffer-info))))))
|
||||
|
||||
(defun package-build-get-pkg-file-info (file-name)
|
||||
(when (file-exists-p file-name)
|
||||
(let ((pkgfile-info (cdr (package-read-from-file file-name))))
|
||||
(defun package-build-get-pkg-file-info (file-path)
|
||||
(when (file-exists-p file-path)
|
||||
(let ((pkgfile-info (cdr (package-read-from-file file-path))))
|
||||
(vector
|
||||
(nth 0 pkgfile-info)
|
||||
(mapcar
|
||||
|
|
Loading…
Reference in a new issue