[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa-admin 285d815 049/439: Fix last change.
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa-admin 285d815 049/439: Fix last change. |
Date: |
Sun, 17 Oct 2021 15:47:32 -0400 (EDT) |
branch: elpa-admin
commit 285d8159198dd2fe3f613db25f65a669228b3df4
Author: Chong Yidong <cyd@stupidchicken.com>
Commit: Chong Yidong <cyd@stupidchicken.com>
Fix last change.
---
admin/archive-contents.el | 80 ++++++++++++++++++++++++-----------------------
1 file changed, 41 insertions(+), 39 deletions(-)
diff --git a/admin/archive-contents.el b/admin/archive-contents.el
index 2f70c2d..cb2c646 100644
--- a/admin/archive-contents.el
+++ b/admin/archive-contents.el
@@ -45,9 +45,9 @@ Otherwise return nil."
(defun batch-make-archive-contents ()
(let ((packages '(1))) ; format-version.
(dolist (file (directory-files default-directory))
- (condition-case nil
+ (condition-case v
(cond
- ((memq file '("." ".." "elpa.rss" "archive-contents"))
+ ((member file '("." ".." "elpa.rss" "archive-contents"))
nil)
;; Multi-file package
((file-directory-p file)
@@ -76,45 +76,47 @@ Otherwise return nil."
;; Simple package
((string-match "\\([^/]+\\)\\.el\\'" file)
(let* ((pkg (match-string 1 file))
- (desc
- (with-temp-buffer
- (insert-file-contents file)
- (goto-char (point-min))
- (unless (looking-at ";;;.*---[ \t]*\\(.*\\)\\(-\\*-.*-\\*-[
\t]*\\)?$")
- (error "Incorrectly formatted header in %s" file))
- (prog1 (match-string 1)
- (let ((commentary (lm-commentary)))
- (with-current-buffer (find-file-noselect
- (concat pkg "-readme.txt"))
- (erase-buffer)
- (emacs-lisp-mode)
- (insert (or commentary
- (prog1 "No description"
- (message "Missing Commentary in %s"
- file))))
- (goto-char (point-min))
- (while (looking-at ";*[ \t]*\\(commentary[:
\t]*\\)?\n")
- (delete-region (match-beginning 0)
- (match-end 0)))
- (uncomment-region (point-min) (point-max))
- (goto-char (point-max))
- (while (progn (forward-line -1)
- (looking-at "[ \t]*\n"))
- (delete-region (match-beginning 0)
- (match-end 0)))
- (save-buffer))))))
- (vers (or (archive-contents--strip-rcs-id (lm-header
"package-version"))
- (archive-contents--strip-rcs-id (lm-header
"version"))
- (error "Missing version number in %s" file)))
- (requires-str (lm-header "package-requires"))
- (req (if requires-str
+ vers desc requires-str req)
+ (with-temp-buffer
+ (insert-file-contents file)
+ (goto-char (point-min))
+ (unless (looking-at ";;;.*---[ \t]*\\(.*\\)\\(-\\*-.*-\\*-[
\t]*\\)?$")
+ (error "Incorrectly formatted header in %s" file))
+ (setq vers
+ (or (archive-contents--strip-rcs-id (lm-header
"package-version"))
+ (archive-contents--strip-rcs-id (lm-header "version"))
+ (error "Missing version number in %s" file)))
+ (setq desc (match-string 1))
+ (let ((commentary (lm-commentary)))
+ (with-current-buffer (find-file-noselect
+ (concat pkg "-readme.txt"))
+ (erase-buffer)
+ (emacs-lisp-mode)
+ (insert (or commentary
+ (prog1 "No description"
+ (message "Missing Commentary in %s"
+ file))))
+ (goto-char (point-min))
+ (while (looking-at ";*[ \t]*\\(commentary[: \t]*\\)?\n")
+ (delete-region (match-beginning 0)
+ (match-end 0)))
+ (uncomment-region (point-min) (point-max))
+ (goto-char (point-max))
+ (while (progn (forward-line -1)
+ (looking-at "[ \t]*\n"))
+ (delete-region (match-beginning 0)
+ (match-end 0)))
+ (save-buffer)))
+ (setq req
+ (let ((requires-str (lm-header "package-requires")))
+ (if requires-str
(mapcar 'archive-contents--convert-require
(car (read-from-string requires-str))))))
- (push (cons (intern pkg)
- (vector (version-to-list vers) req desc 'single))
- packages)
- (rename-file file (concat (or (file-name-directory file) "")
- pkg "-" vers ".el"))))
+ (push (cons (intern pkg)
+ (vector (version-to-list vers) req desc 'single))
+ packages)
+ (rename-file file (concat (or (file-name-directory file) "")
+ pkg "-" vers ".el")))))
((not (or (string-match "\\.elc\\'" file)
(string-match "-readme\\.txt\\'" file)))
(message "Unknown file %s" file)))
- [nongnu] elpa-admin 968d870 212/439: Merge commit 'cce1d8b50b1ceccb80c20398cd659db3a6348aac' as 'packages/gnome-c-style', (continued)
- [nongnu] elpa-admin 968d870 212/439: Merge commit 'cce1d8b50b1ceccb80c20398cd659db3a6348aac' as 'packages/gnome-c-style', Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 2ba4dc8 215/439: Merge commit '6bf96861b98e91ca9c3bd146697580b42d30f5d9', Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin f79a619 218/439: * packages/gnome-c-style/gnome-c-tests.el: Add copyright blurb, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 73a80fc 227/439: Update packages/yasnippet by subtree-merging from its github-based upstream, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 0907441 229/439: packages/yasnippet: subtree pull from external, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin cc63328 234/439: * GNUmakefile (.gitignore): New rule, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 8208d1c 245/439: Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs/elpa, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 32ff16d 247/439: Merge commit 'ff57536e7c8e7dd2b5bfdf803fe78327b572e080', Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin da3bd64 263/439: [admin int] Use ‘archive--read-externals-list’ more., Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 1325337 262/439: [admin int] Simplify ‘archive-gitignore-externals’., Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 285d815 049/439: Fix last change.,
Philip Kaludercic <=
- [nongnu] elpa-admin b824440 047/439: Minor rephrasing in README, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin dfa5808 053/439: Rework archive-contents.el to handle new packages/ structure., Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin da7456c 065/439: write README in markdown, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 7ce78d5 071/439: Note that 'autogen.sh' should be run to generate 'configure' and 'Makefile.in' (see #11), Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin a745b29 076/439: * admin/archive-contents.el: Create web pages., Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 1daf0bb 085/439: Merge branch 'master' of github.com:rocky/emacs-loc-changes, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin e71d997 087/439: Merge remote-tracking branch 'repo.or.cz/elpa', Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin cd01c51 080/439: Remove the angle brackets, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 30c8a11 248/439: Merge commit '5f47b1f64cad8a06e945e2a1287b986a3676554d', Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 299da86 255/439: Package pages improvements, Philip Kaludercic, 2021/10/17