[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa-admin 5660f25 261/439: [admin] Add abstraction: archive--r
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa-admin 5660f25 261/439: [admin] Add abstraction: archive--read-externals-list |
Date: |
Sun, 17 Oct 2021 15:48:15 -0400 (EDT) |
branch: elpa-admin
commit 5660f2567d23cbaea89e189c27af24892abd97f7
Author: Thien-Thi Nguyen <ttn@gnu.org>
Commit: Thien-Thi Nguyen <ttn@gnu.org>
[admin] Add abstraction: archive--read-externals-list
* admin/archive-contents.el (archive--read-externals-list): New func.
(archive--insert-repolinks, archive-add/remove/update-externals): Use it.
---
admin/archive-contents.el | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/admin/archive-contents.el b/admin/archive-contents.el
index 953a00b..66ea520 100755
--- a/admin/archive-contents.el
+++ b/admin/archive-contents.el
@@ -436,17 +436,19 @@ Rename DIR/ to PKG-VERS/, and return the descriptor."
(replace-regexp-in-string "<" "<"
(replace-regexp-in-string "&" "&" txt)))
+(defun archive--read-externals-list (&optional dir)
+ (with-temp-buffer
+ (insert-file-contents (expand-file-name "externals-list" dir))
+ (read (current-buffer))))
+
(defun archive--insert-repolinks (name srcdir _mainsrcfile url)
(when url
(insert (format "<dt>Home page</dt> <dd><a href=%S>%s</a></dd>\n"
url (archive--quote url)))
(when (string-match archive-default-url-re url)
(setq url nil)))
- (let* ((externals
- (with-temp-buffer
- (insert-file-contents
- (expand-file-name "../../../elpa/externals-list" srcdir))
- (read (current-buffer))))
+ (let* ((externals (archive--read-externals-list
+ (expand-file-name "../../../elpa" srcdir)))
(external (eq :external (nth 1 (assoc name externals))))
(git-sv "http://git.savannah.gnu.org/")
(urls (if external
@@ -787,9 +789,7 @@ If WITH-CORE is non-nil, it means we manage :core packages
as well."
(defun archive-add/remove/update-externals ()
"Remove non-package directories and fetch external packages."
- (let ((externals-list
- (with-current-buffer (find-file-noselect "externals-list")
- (read (buffer-string)))))
+ (let ((externals-list (archive--read-externals-list)))
(let ((with-core (archive--sync-emacs-repo)))
(archive--cleanup-packages externals-list with-core)
(pcase-dolist ((and definition `(,name ,kind ,_url)) externals-list)
- [nongnu] elpa-admin ac713ed 242/439: Merge commit 'bdbbc65028af8deb55a4e474be43b5b99e6cc539', (continued)
- [nongnu] elpa-admin ac713ed 242/439: Merge commit 'bdbbc65028af8deb55a4e474be43b5b99e6cc539', Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 9c513a6 246/439: Merge commit 'db34a79efd068f28643cefd6f16a7329ba24dbf1', Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin b14148a 249/439: Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs/elpa, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 2f122b0 251/439: Merge branch 'master' into new-website, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin b9ba590 252/439: packages/yasnippet: Merge external (v0.11.0), Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin c670f77 253/439: Merge branch 'master' into new-website, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 7626ffa 254/439: Website footer improvement, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 294407d 256/439: README: Fix copyright years., Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 34ecb5f 257/439: Respect .elpaignore when compiling and optimize compilation., Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 82a2bda 259/439: Put tar'd files at the end to fix build in some environments., Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 5660f25 261/439: [admin] Add abstraction: archive--read-externals-list,
Philip Kaludercic <=
- [nongnu] elpa-admin c101039 265/439: [admin int] Add abstraction: archive-call, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 98bcea9 268/439: [admin int] Add abstraction: archive--dirname, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 186d10f 269/439: Clear executable bit for Emacs Lisp files., Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 336afcd 272/439: Merge commit '8280df5ce6db836559a5c2442b97a2f02b6f7a05', Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 9db3516 274/439: Merge branch 'scratch/org-edna', Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 0f843a7 275/439: Merge branch 'scratch/dired-du', Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 94286b7 276/439: * packages/yasnippet: Merge version 0.12.0 from upstream., Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 602f32e 277/439: Merge yasnippet 0.12.1 from upstream, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 5ac89c8 281/439: * packages/yasnippet: Merge version 0.12.2 from upstream., Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin d5be3dd 283/439: * README: mention make check_copyrights, Philip Kaludercic, 2021/10/17