[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gnu-elpa-keyring-update c63d5c4 4/7: * gnu-elpa-keyring
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gnu-elpa-keyring-update c63d5c4 4/7: * gnu-elpa-keyring-update.el: Remove assumption about gpg pubring file |
Date: |
Tue, 1 Dec 2020 16:02:22 -0500 (EST) |
branch: externals/gnu-elpa-keyring-update
commit c63d5c49d4132df8e27b49b8f6a061d71badb4b9
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
* gnu-elpa-keyring-update.el: Remove assumption about gpg pubring file
Check the presence/freshness of our own timestamp witness file instead.
(gnu-elpa-keyring-update): Write a timestamp witness.
---
gnu-elpa-keyring-update.el | 28 +++++++++++++++-------------
1 file changed, 15 insertions(+), 13 deletions(-)
diff --git a/gnu-elpa-keyring-update.el b/gnu-elpa-keyring-update.el
index 4147cb8..0a130bc 100644
--- a/gnu-elpa-keyring-update.el
+++ b/gnu-elpa-keyring-update.el
@@ -5,7 +5,7 @@
;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
;; Keywords: maint, tools
;; Package-Type: multi
-;; Version: 2019.1
+;; Version: 2019.2
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@@ -73,22 +73,24 @@
(let ((gnupghome-dir (or (bound-and-true-p package-gnupghome-dir)
(expand-file-name "gnupg"
package-user-dir))))
- (if (file-directory-p gnupghome-dir)
- (package-import-keyring (gnu-elpa-keyring-update--keyring))
- (error "No keyring to update!"))))
+ (if (not (file-directory-p gnupghome-dir))
+ (error "No keyring to update!")
+ (package-import-keyring (gnu-elpa-keyring-update--keyring))
+ (write-region "" nil (expand-file-name "gnu-elpa.timestamp" hd)
+ nil 'silent))))
;;;###autoload (eval-after-load 'package
;;;###autoload `(and (bound-and-true-p package-user-dir)
;;;###autoload (file-directory-p package-user-dir)
-;;;###autoload (let ((okr (expand-file-name
-;;;###autoload "pubring.gpg"
-;;;###autoload (or (bound-and-true-p package-gnupghome-dir)
-;;;###autoload (expand-file-name "gnupg"
-;;;###autoload package-user-dir))))
-;;;###autoload (nkr gnu-elpa-keyring-update--keyring))
-;;;###autoload (and (file-writable-p okr)
-;;;###autoload (file-readable-p nkr)
-;;;###autoload (file-newer-than-file-p nkr okr)
+;;;###autoload (let ((ts (expand-file-name
+;;;###autoload "gnu-elpa.timestamp"
+;;;###autoload (or (bound-and-true-p package-gnupghome-dir)
+;;;###autoload (expand-file-name "gnupg"
+;;;###autoload package-user-dir))))
+;;;###autoload (kr gnu-elpa-keyring-update--keyring))
+;;;###autoload (and (file-writable-p ts)
+;;;###autoload (file-readable-p kr)
+;;;###autoload (file-newer-than-file-p kr ts)
;;;###autoload (gnu-elpa-keyring-update)))))
(eval-when-compile
- [elpa] branch externals/gnu-elpa-keyring-update created (now f70bc9a), Stefan Monnier, 2020/12/01
- [elpa] externals/gnu-elpa-keyring-update 60c0db1 1/7: * gnu-elpa-keyring-update: New package, Stefan Monnier, 2020/12/01
- [elpa] externals/gnu-elpa-keyring-update caaedbc 2/7: * gnu-elpa-keyring-update.el: Make it a multifile package, Stefan Monnier, 2020/12/01
- [elpa] externals/gnu-elpa-keyring-update b499616 3/7: gnu-elpa-keyring-update: Circumvent bug#35495, Stefan Monnier, 2020/12/01
- [elpa] externals/gnu-elpa-keyring-update c63d5c4 4/7: * gnu-elpa-keyring-update.el: Remove assumption about gpg pubring file,
Stefan Monnier <=
- [elpa] externals/gnu-elpa-keyring-update 33a297c 5/7: * gnu-elpa-keyring-update.el: Improve `Commentary:`, Stefan Monnier, 2020/12/01
- [elpa] externals/gnu-elpa-keyring-update c28b02d 6/7: * gnu-elpa-keyring-update.el: Bump version, Stefan Monnier, 2020/12/01
- [elpa] externals/gnu-elpa-keyring-update f70bc9a 7/7: * .gitignore: New file, Stefan Monnier, 2020/12/01