[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa-admin 802b866 394/439: * GNUmakefile (sync-some): New targ
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa-admin 802b866 394/439: * GNUmakefile (sync-some): New target |
Date: |
Sun, 17 Oct 2021 15:48:43 -0400 (EDT) |
branch: elpa-admin
commit 802b866b7cddebe0a11ad9b565d77421ff210d92
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
* GNUmakefile (sync-some): New target
* elpa-admin.el (elpaa--batch-fetch-and): Allow iterating over subset
---
GNUmakefile | 9 +++++++--
elpa-admin.el | 11 ++++++-----
2 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/GNUmakefile b/GNUmakefile
index 9dda824..291b0ec 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -269,7 +269,7 @@ fetch/%:
.PHONY: fetch-all
fetch-all:
- $(EMACS) -l admin/elpa-admin.el -f elpaa-batch-fetch-and-show "-"
+ $(EMACS) -l admin/elpa-admin.el -f elpaa-batch-fetch-and-show :
.PHONY: sync/%
sync/%:
@@ -277,7 +277,12 @@ sync/%:
.PHONY: sync-all
sync-all:
- $(EMACS) -l admin/elpa-admin.el -f elpaa-batch-fetch-and-push "-"
+ $(EMACS) -l admin/elpa-admin.el -f elpaa-batch-fetch-and-push :
+
+# Only sync those packages which enable the `:auto-sync` property.
+.PHONY: sync-some
+sync-some:
+ $(EMACS) -l admin/elpa-admin.el -f elpaa-batch-fetch-and-push :auto-sync
diff --git a/elpa-admin.el b/elpa-admin.el
index 53ecc99..551134b 100644
--- a/elpa-admin.el
+++ b/elpa-admin.el
@@ -1584,16 +1584,17 @@ More at " (elpaa--default-url pkgname))
(defun elpaa--batch-fetch-and (k)
(let ((specs (elpaa--get-specs))
(pkgs command-line-args-left)
- (clal command-line-args-left))
+ (condition ':))
(setq command-line-args-left nil)
- (if (member pkgs '(("-") ("?"))) (setq pkgs (mapcar #'car specs)))
+ (when (and (null (cdr pkgs)) (string-match "\\`:" (car pkgs)))
+ (setq condition (intern (car pkgs)))
+ (setq pkgs (mapcar #'car specs)))
(dolist (pkg pkgs)
(let* ((pkg-spec (assoc pkg specs)))
(cond
((not pkg-spec) (message "Unknown package: %s" pkg))
- ((and (equal clal '("?")) (not (elpaa--spec-get pkg-spec :auto-sync)))
- nil)
- (t
+ ((or (eq condition ':)
+ (elpaa--spec-get pkg-spec condition))
;; (unless (file-directory-p (expand-file-name pkg "packages"))
;; (elpaa--worktree-sync pkg-spec))
(elpaa--fetch pkg-spec k)))))))
- [nongnu] elpa-admin 0b84023 372/439: * elpa-admin.el: Fix confusing uses of word "external", (continued)
- [nongnu] elpa-admin 0b84023 372/439: * elpa-admin.el: Fix confusing uses of word "external", Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 3926bbc 381/439: * elpa-admin.el (elpaa--release-email): Improve the Cc address, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 913bb04 376/439: * GNUmakefile: Rewrite the all-in-place code, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin ceb7580 390/439: * elpa-admin.el (elpaa--sandboxed-ro-binds): Add `/bin`, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 995404d 401/439: * elpa-admin.el: Allow generating autoloads for "unlisted" packages, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 7d65683 356/439: * admin/archive-contents.el: Fix wrong cgit links and support :core somewhat, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 4ade74d 346/439: * README.org: Add license and an introduction., Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 922d625 389/439: * GNUmakefile (EMACS): Split out EMACSBIN for convenience, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin bcacdba 361/439: * elpa-admin.el: Add `:readme` and `:news` properties to specifications, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 311d819 357/439: * GNUmakefile: Fix `-l` args to `emacs` which require an actual file name, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 802b866 394/439: * GNUmakefile (sync-some): New target,
Philip Kaludercic <=
- [nongnu] elpa-admin b3e663b 353/439: Rename ELisp files, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 4b508ad 364/439: * elpa-admin.el: Allow site-local config, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 48e4ccf 388/439: * elpa-admin.el: Don't pass non-existing dirs to `bwrap`, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 12cd68f 386/439: * README.org: Update according to comments from RMS., Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin d56a357 416/439: * elpa-admin.el: Don't hide the log of diverged packages in `fetch/<pkg>`, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin e79cce6 382/439: * elpa-admin.el (elpaa--get-section): Fix fetching from main file, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 2b93ca3 363/439: * elpa-admin.el: Add support for building Texi from Org., Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin b776ff9 408/439: * elpa-admin.el (elpaa--prune-old-tarballs): Move the .sig files as well, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 911fbf6 370/439: * GNUmakefile: Try and unbreak "make packages/foo". Still not perfect, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin bdb17b6 409/439: * elpa-admin.el (elpaa--get-devel-version): Don't remove *all* zeroes!, Philip Kaludercic, 2021/10/17