[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa-admin f25cda3 303/439: * GNUmakefile (%.elc): Use load-pre
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa-admin f25cda3 303/439: * GNUmakefile (%.elc): Use load-prefer-newer |
Date: |
Sun, 17 Oct 2021 15:48:25 -0400 (EDT) |
branch: elpa-admin
commit f25cda37f2f66ec0c6e66125782c346e82f015cf
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
* GNUmakefile (%.elc): Use load-prefer-newer
* admin/archive-contents.el (archive--pull): Skip uptodate worktrees.
---
GNUmakefile | 8 +++++---
README | 2 +-
admin/archive-contents.el | 22 ++++++++++++++--------
3 files changed, 20 insertions(+), 12 deletions(-)
diff --git a/GNUmakefile b/GNUmakefile
index 79e252f..8bfd49b 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -171,9 +171,11 @@ elcs := $(call SET-diff, $(naive_elcs), $(patsubst %.el,
%.elc, $(nbc_els)))
# '(dolist (al (quote ($(patsubst %, "%", $(autoloads))))) (load
(expand-file-name al) nil t))'
%.elc: %.el
@echo 'Byte compiling $<'
- @$(EMACS) \
- --eval "(setq package-directory-list nil package-user-dir
\"$(abspath packages)\")" \
- -f package-initialize \
+ @$(EMACS) \
+ --eval "(setq package-directory-list nil \
+ load-prefer-newer t \
+ package-user-dir \"$(abspath packages)\")" \
+ -f package-initialize \
-L $(dir $@) -f batch-byte-compile $<
.PHONY: elcs
diff --git a/README b/README
index b827780..e0c9faf 100644
--- a/README
+++ b/README
@@ -229,7 +229,7 @@ In the `external' case, the copy of the code is not kept in
`master` but in the
To add a new externals package, first add this `elpa.git' repository as a
new remote in your existing repository. Then push a local branch to a
-new remote branch in `elpa.git', named externals/<pkgname>. For example:
+new remote branch in `elpa.git', named `externals/<pkgname>`. For example:
git push elpa <mybranch>:externals/<pkgname>
diff --git a/admin/archive-contents.el b/admin/archive-contents.el
index 17909b9..32f5285 100644
--- a/admin/archive-contents.el
+++ b/admin/archive-contents.el
@@ -1,6 +1,6 @@
;;; archive-contents.el --- Auto-generate an Emacs Lisp package archive. -*-
lexical-binding:t -*-
-;; Copyright (C) 2011-2018 Free Software Foundation, Inc
+;; Copyright (C) 2011-2019 Free Software Foundation, Inc
;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
@@ -626,14 +626,20 @@ Rename DIR/ to PKG-VERS/, and return the descriptor."
(message "Running git pull in %S" default-directory)
(archive-call t "git" "pull"))
((file-exists-p ".git")
- (message "Updating worktree in %S" default-directory)
- (archive-call t "git" "merge"))
+ (unless (with-temp-buffer
+ (archive-call t "git" "status" "--branch" "--porcelain=2")
+ (goto-char (point-min))
+ ;; Nothing to pull (nor push, actually).
+ (search-forward "\n# branch.ab +0 -0" nil t))
+ (message "Updating worktree in %S" default-directory)
+ (archive-call t "git" "merge")))
(t (error "No .git in %S" default-directory)))
- (message "Updated %s:%s%s" dirname
- (if (and (eobp) (bolp)
- (eq (line-beginning-position 0) (point-min)))
- " " "\n")
- (buffer-string)))))
+ (unless (and (eobp) (bobp))
+ (message "Updated %s:%s%s" dirname
+ (if (and (eobp) (bolp)
+ (eq (line-beginning-position 0) (point-min)))
+ " " "\n")
+ (buffer-string))))))
;;; Maintain external packages.
- [nongnu] elpa-admin 19a11bc 278/439: Add explicit instructions for new external packages, (continued)
- [nongnu] elpa-admin 19a11bc 278/439: Add explicit instructions for new external packages, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin d4f5903 284/439: * README: Clarify the right fix for check_copyrights failure, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin a5d74b0 291/439: * packages/yasnippet: Merge version 0.13.0 from upstream., Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 63888f3 292/439: Warn about transfer.fsckObjects, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 0a995ba 296/439: * admin/archive-contents.el (archive--insert-repolinks): Fix further, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 02d8431 297/439: * admin/archive-contents.el (archive--insert-repolinks): Fix further yet, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin b5760e3 298/439: * admin/archive-contents.el (archive--insert-repolinks): Getting there, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin a216465 299/439: * admin/archive-contents.el (archive--insert-repolinks): Whoops, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 38e81a8 300/439: * README: Recommend "externals" and add some recommendations, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 655d2e7 305/439: Update packages/ack from upstream, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin f25cda3 303/439: * GNUmakefile (%.elc): Use load-prefer-newer,
Philip Kaludercic <=
- [nongnu] elpa-admin f85cb8d 302/439: * README (PACKAGES/Externals): Clarify use, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin a71a25a 306/439: Update packages/darkroom from upstream, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 0c6fbe0 307/439: Update packages/ack from upstream, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin c943660 310/439: Merge commit '98405112baa5ce2a118d1c65184c005d8ddaa1a9', Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 973ee9d 314/439: Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs/elpa, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 9822a67 315/439: README: Mention that the copyright in ELPA is with the FSF, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 14797ea 319/439: * admin/archive-contents.el: Adjust last change, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 9c8cf14 320/439: * admin/archive-contents.el (archive-refresh-pkg-file): Resurrect., Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 4fc4d47 321/439: Merge commit '5b562e4ddfc449cd61c82ef7646a6c501b913b6c', Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin b69dfb7 324/439: Merge commit '8dbcc8e07c462777378cc859eced622ec9b0fc4d', Philip Kaludercic, 2021/10/17