[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] elpa-admin f25cda3 303/357: * GNUmakefile (%.elc): Use load-prefe
From: |
Stefan Monnier |
Subject: |
[elpa] elpa-admin f25cda3 303/357: * GNUmakefile (%.elc): Use load-prefer-newer |
Date: |
Thu, 10 Dec 2020 18:07:03 -0500 (EST) |
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.
- [elpa] elpa-admin 839fe96 209/357: * GNUmakefile (check_copyrights): Skip symlinks, (continued)
- [elpa] elpa-admin 839fe96 209/357: * GNUmakefile (check_copyrights): Skip symlinks, Stefan Monnier, 2020/12/10
- [elpa] elpa-admin 642c7c1 203/357: Prevent accidental deletion of .git, Stefan Monnier, 2020/12/10
- [elpa] elpa-admin ff431a8 223/357: Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs/elpa, Stefan Monnier, 2020/12/10
- [elpa] elpa-admin 0907441 229/357: packages/yasnippet: subtree pull from external, Stefan Monnier, 2020/12/10
- [elpa] elpa-admin c8b582a 220/357: Merge commit '1054ea1bc5b07a1438a18c1b33f4266b28ff9d77', Stefan Monnier, 2020/12/10
- [elpa] elpa-admin 8c08096 285/357: * GNUmakefile (org-fetch): Don't stop the whole update if it fails., Stefan Monnier, 2020/12/10
- [elpa] elpa-admin 8154769 282/357: * copyright_exceptions: Update for new uni-confusables/gen-confusables.el, Stefan Monnier, 2020/12/10
- [elpa] elpa-admin 6734638 244/357: Merge commit 'd7bac581f04756582078cd9ea45e5a28406ee05c', Stefan Monnier, 2020/12/10
- [elpa] elpa-admin d276c3d 288/357: * README: Don't clone a clone., Stefan Monnier, 2020/12/10
- [elpa] elpa-admin 5ac89c8 281/357: * packages/yasnippet: Merge version 0.12.2 from upstream., Stefan Monnier, 2020/12/10
- [elpa] elpa-admin f25cda3 303/357: * GNUmakefile (%.elc): Use load-prefer-newer,
Stefan Monnier <=
- [elpa] elpa-admin 21c69f7 308/357: Merge commit 'c304ac9a80ab7e96f705771a3842a48bf5a32c8a', Stefan Monnier, 2020/12/10
- [elpa] elpa-admin cdefe40 311/357: Improve copying of :core files; update .gitignore, Stefan Monnier, 2020/12/10
- [elpa] elpa-admin 3ca74c1 011/357: preparing for new rst format document, Stefan Monnier, 2020/12/10
- [elpa] elpa-admin a703bf2 025/357: Merge branch 'master' of github.com:rocky/emacs-load-relative, Stefan Monnier, 2020/12/10
- [elpa] elpa-admin b584cdf 007/357: # Updated., Stefan Monnier, 2020/12/10
- [elpa] elpa-admin bd19e1f 015/357: Start to use load-relative. dbgr-core.el: fix bug in dbgr-term-sentinal, Stefan Monnier, 2020/12/10
- [elpa] elpa-admin a53e009 023/357: Merge branch 'master' of github.com:rocky/emacs-dbgr, Stefan Monnier, 2020/12/10
- [elpa] elpa-admin 3c6d0e1 037/357: Copy examples from wcheck-language-data doc to README, Stefan Monnier, 2020/12/10
- [elpa] elpa-admin f8051b4 032/357: Fixes to archive-contents.el and package-update.sh., Stefan Monnier, 2020/12/10
- [elpa] elpa-admin 81a6a01 088/357: Fix up scripts to build archive from Git, Stefan Monnier, 2020/12/10