[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/xeft 361ee04913 54/55: * xeft.el (xeft--download-module
From: |
ELPA Syncer |
Subject: |
[elpa] externals/xeft 361ee04913 54/55: * xeft.el (xeft--download-module): Fix. |
Date: |
Fri, 13 Jan 2023 23:58:40 -0500 (EST) |
branch: externals/xeft
commit 361ee049138bd5359d1cb2ee531e861a68ef0b1e
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>
* xeft.el (xeft--download-module): Fix.
---
xeft.el | 36 ++++++++++++++++++------------------
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/xeft.el b/xeft.el
index 77d1a7defa..aa420bfc66 100644
--- a/xeft.el
+++ b/xeft.el
@@ -201,24 +201,24 @@ If success return non-nil, otherwise return nil."
(defun xeft--download-module ()
"Download pre-built module from GitHub. Return non-nil if success."
(when (y-or-n-p "You are about to download binary from Internet without
checking checksum, do you want to continue?")
- (let ((system (car (read-multiple-choice
- "Which prebuilt binary do you want to download? "
- '((?1 "amd64-GNU/Linux"
- "GNU/Linux on Intel/AMD x86_64 CPU")
- (?2 "amd64-macOS"
- "macOS on Intel/AMD x86_64 CPU")
- (?q "quit")))))
- (module-path (expand-file-name
- "xapian-lite.so"
- (file-name-directory
- (locate-library "xeft.el" t)))))
- (if (eq system ?q)
- nil
- (url-copy-file
- (pcase system
- (1 xeft--linux-module-url)
- (2 xeft--mac-module-url))
- module-path)))))
+ (let* ((system (car (read-multiple-choice
+ "Which prebuilt binary do you want to download? "
+ '((?1 "amd64-GNU/Linux"
+ "GNU/Linux on Intel/AMD x86_64 CPU")
+ (?2 "amd64-macOS"
+ "macOS on Intel/AMD x86_64 CPU")
+ (?q "quit")))))
+ (module-path (expand-file-name
+ "xapian-lite.so"
+ (file-name-directory
+ (locate-library "xeft.el" t))))
+ (url (pcase system
+ (?1 xeft--linux-module-url)
+ (?2 xeft--mac-module-url))))
+ (when (and url
+ (y-or-n-p (format "Downloading from %s, is that ok?"
+ url)))
+ (url-copy-file url module-path)))))
;;; Helpers
- [elpa] externals/xeft 270eeb1084 44/55: * xeft.el: Add version for package-vc-install., (continued)
- [elpa] externals/xeft 270eeb1084 44/55: * xeft.el: Add version for package-vc-install., ELPA Syncer, 2023/01/13
- [elpa] externals/xeft 0f56356d24 48/55: Switch to sr.ht, ELPA Syncer, 2023/01/13
- [elpa] externals/xeft fa63432715 11/55: * Makefile (xeft-module.so): Fix linking flags, ELPA Syncer, 2023/01/13
- [elpa] externals/xeft 26389942e9 37/55: Minor change, ELPA Syncer, 2023/01/13
- [elpa] externals/xeft 6efff4f20d 12/55: Add conexcept qualifier, ELPA Syncer, 2023/01/13
- [elpa] externals/xeft 5c8adb7c51 28/55: * Makefile: Fix PREFIX., ELPA Syncer, 2023/01/13
- [elpa] externals/xeft 78bf82b507 31/55: * xeft.el (xeft-refresh): Remove workaround for emacs-rime., ELPA Syncer, 2023/01/13
- [elpa] externals/xeft 6d27d1a7ab 32/55: Replace xeft-module with xapian-lite, ELPA Syncer, 2023/01/13
- [elpa] externals/xeft 4f16722a47 38/55: Handle database errors, ELPA Syncer, 2023/01/13
- [elpa] externals/xeft 321dd84b64 39/55: * Makefile: Add support for windows dylib extension, ELPA Syncer, 2023/01/13
- [elpa] externals/xeft 361ee04913 54/55: * xeft.el (xeft--download-module): Fix.,
ELPA Syncer <=
- [elpa] externals/xeft f193d6135e 42/55: Ignore dot directory and make file function customizable, ELPA Syncer, 2023/01/13
- [elpa] externals/xeft 4bdb052d81 55/55: * xeft.el: Bump to version 3.2., ELPA Syncer, 2023/01/13
- [elpa] externals/xeft babe67496a 52/55: Add xapian-lite source, ELPA Syncer, 2023/01/13
- [elpa] externals/xeft 2fd4dd6ef8 41/55: Update xapian-lite.cc, ELPA Syncer, 2023/01/13