Skip to content

Commit

Permalink
Silence byte-compiler
Browse files Browse the repository at this point in the history
This completes [1: 1de4f6c].

1: 2023-12-23 1de4f6c
   Account for Emacs 30's relocation of package--prepare-dependencies
  • Loading branch information
tarsius committed Dec 30, 2023
1 parent c48aa07 commit abad0d9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions package-build.el
Original file line number Diff line number Diff line change
Expand Up @@ -1085,12 +1085,15 @@ value specified in the file \"NAME.el\"."
^;;; [^ ]*\\.el ---[ \t]*\\(.*?\\)[ \t]*\\(-\\*-.*-\\*-[ \t]*\\)?$" nil t)
(match-string-no-properties 1)))
"No description available.")
(if (fboundp 'lm-package-requires)
(lm-package-requires)
(when-let ((require-lines (lm-header-multiline "package-requires")))
(cond
((fboundp 'lm-package-requires)
(lm-package-requires))
((fboundp 'package--prepare-dependencies)
(and-let* ((require-lines
(lm-header-multiline "package-requires")))
(package--prepare-dependencies
(package-read-from-string
(mapconcat #'identity require-lines " ")))))
(mapconcat #'identity require-lines " "))))))
;; `:kind' and `:archive' are handled separately.
:kind (or kind 'single)
;; The other keyword arguments are appended to the alist
Expand Down

0 comments on commit abad0d9

Please sign in to comment.