[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] elpa-admin 05e61f85a8: * elpa-admin.el (elpaa--publish-package-sp
From: |
Philip Kaludercic |
Subject: |
[elpa] elpa-admin 05e61f85a8: * elpa-admin.el (elpaa--publish-package-specs): Update file format |
Date: |
Sun, 30 Oct 2022 13:30:04 -0400 (EDT) |
branch: elpa-admin
commit 05e61f85a8504b51d3f26e1cc2df860d8411e964
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
* elpa-admin.el (elpaa--publish-package-specs): Update file format
---
elpa-admin.el | 29 ++++++++++++++++++-----------
1 file changed, 18 insertions(+), 11 deletions(-)
diff --git a/elpa-admin.el b/elpa-admin.el
index 372cd92ec6..8e662190b8 100644
--- a/elpa-admin.el
+++ b/elpa-admin.el
@@ -792,18 +792,25 @@ of the current `process-environment'. Return the
modified copy."
"Process and publish SPECS in elpa-packages.eld files."
(with-temp-buffer
;; Remove :core packages, handle :url nil and and compress the
- ;; contents of the "elpa-packages"
+ ;; contents of the "elpa-packages". Note that elpa-packages.eld
+ ;; does not use the same format as "elpa-packages" in
+ ;; {nongnu,elpa}.git. The file is intended to be used by
+ ;; package-vc.el.
(prin1
- (mapcan
- (lambda (spec)
- (pcase spec
- (`(,name :url nil . ,rest)
- `((,name :url ,(concat "https://git.sv.gnu.org/git/" elpaa--gitrepo)
- :branch ,(concat elpaa--branch-prefix (car spec))
- ,@rest)))
- (`(,_ :core ,_ . ,_) nil) ;not supported
- (_ (list spec))))
- specs)
+ (list (mapcan
+ (lambda (spec)
+ (let ((rel (ignore-errors (elpaa--get-last-release spec))))
+ (when rel
+ (nconc spec (list :release-rev (cdr rel)))))
+ (pcase spec
+ (`(,name :url nil . ,rest)
+ `((,name :url ,(concat "https://git.sv.gnu.org/git/"
elpaa--gitrepo)
+ :branch ,(concat elpaa--branch-prefix (car spec))
+ ,@rest)))
+ (`(,_ :core ,_ . ,_) nil) ;not supported
+ (_ (list spec))))
+ specs)
+ :version 1 :default-vc 'Git)
(current-buffer))
(write-region nil nil (expand-file-name "elpa-packages.eld"
elpaa--release-subdir))
(write-region nil nil (expand-file-name "elpa-packages.eld"
elpaa--devel-subdir))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] elpa-admin 05e61f85a8: * elpa-admin.el (elpaa--publish-package-specs): Update file format,
Philip Kaludercic <=