[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] elpa-admin 47280ce: * elpa-admin.el: Don't mention skipping :core
From: |
Stefan Monnier |
Subject: |
[elpa] elpa-admin 47280ce: * elpa-admin.el: Don't mention skipping :core if there are no :core |
Date: |
Tue, 5 Jan 2021 22:08:47 -0500 (EST) |
branch: elpa-admin
commit 47280ce0431f0fe03a9b1e6584b7d4c3145a1d27
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
* elpa-admin.el: Don't mention skipping :core if there are no :core
(elpaa--sync-emacs-repo): Don't emit message.
(elpaa-batch-archive-update-worktrees): Emit it here.
---
elpa-admin.el | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/elpa-admin.el b/elpa-admin.el
index 2a48ecc..bd2e7fe 100644
--- a/elpa-admin.el
+++ b/elpa-admin.el
@@ -1,6 +1,6 @@
;;; elpa-admin.el --- Auto-generate an Emacs Lisp package archive -*-
lexical-binding:t -*-
-;; Copyright (C) 2011-2020 Free Software Foundation, Inc
+;; Copyright (C) 2011-2021 Free Software Foundation, Inc
;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
@@ -1072,9 +1072,7 @@ Return non-nil if there's an \"emacs\" repository
present."
;; So make the handling of :core packages depend on whether or not the user
;; has setup a clone of Emacs under the "emacs" subdirectory.
(let ((emacs-repo-root (expand-file-name "emacs")))
- (if (not (file-directory-p emacs-repo-root))
- (progn (message "No \"emacs\" subdir: will skip :core packages")
- nil)
+ (when (file-directory-p emacs-repo-root)
(elpaa--pull emacs-repo-root)
t)))
@@ -1291,7 +1289,8 @@ If WITH-CORE is non-nil, it means we manage :core
packages as well."
(defun elpaa-batch-archive-update-worktrees (&rest _)
(let ((specs (elpaa--get-specs))
(pkgs command-line-args-left)
- (with-core (elpaa--sync-emacs-repo)))
+ (with-core (elpaa--sync-emacs-repo))
+ msg-done)
(setq command-line-args-left nil)
(if (equal pkgs '("-")) (setq pkgs (mapcar #'car specs)))
(dolist (pkg pkgs)
@@ -1299,7 +1298,12 @@ If WITH-CORE is non-nil, it means we manage :core
packages as well."
(kind (nth 1 pkg-spec)))
(pcase kind
((or ':url `:external) (elpaa--worktree-sync pkg-spec))
- (`:core (when with-core (elpaa--core-package-sync pkg-spec)))
+ (`:core
+ (if (not with-core)
+ (unless msg-done
+ (setq msg-done t)
+ (message "No \"emacs\" subdir: skipping :core packages"))
+ (elpaa--core-package-sync pkg-spec)))
(_ (if pkg-spec
(message "Unknown package kind `%S' for %s" kind pkg)
(message "Unknown package %s" pkg))))))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] elpa-admin 47280ce: * elpa-admin.el: Don't mention skipping :core if there are no :core,
Stefan Monnier <=