Skip to content

Commit 03c0a23

Browse files
dickmaobbatsov
authored andcommitted
Implement a workaround for an expired elpa key (#2722)
The elpa key expiration has wrought havoc among elisp repos that actually conduct proper testing, proving yet again that no good deed goes unpunished. See also: nextcloud/docker#687 (comment)
1 parent 26adbdf commit 03c0a23

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ commands:
55
setup:
66
steps:
77
- checkout
8+
- run: make elpa-key
89
- run: make elpa
910
- run: emacs --version
1011
test:

Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,22 @@ all: build
2121

2222
-include .depend
2323

24+
.PHONY: elpa-key
25+
elpa-key:
26+
-mkdir -p $(HOME)/.emacs.d/elpa/gnupg
27+
chmod 700 $(HOME)/.emacs.d/elpa/gnupg
28+
( for i in 1 2 3 ; do \
29+
gpg --keyserver hkp://ipv4.pool.sks-keyservers.net --homedir $(HOME)/.emacs.d/elpa/gnupg --recv-keys 066DAFCB81E42C40 ; \
30+
if gpg -q --homedir $(HOME)/.emacs.d/elpa/gnupg -k | grep 81E42C40 ; then \
31+
exit 0 ; \
32+
fi ; \
33+
sleep 5 ; \
34+
done ; \
35+
exit 1 ; \
36+
)
37+
-mkdir -p $(shell $(CASK) package-directory)
38+
cp -pr $(HOME)/.emacs.d/elpa/gnupg $(shell $(CASK) package-directory)
39+
2440
elpa-$(EMACS):
2541
$(CASK) install
2642
$(CASK) update

0 commit comments

Comments
 (0)