[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive de0d6f98ec 2/8: Change: (hyperdrive-download-ur
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive de0d6f98ec 2/8: Change: (hyperdrive-download-url) Make async |
Date: |
Fri, 16 Aug 2024 19:00:11 -0400 (EDT) |
branch: elpa/hyperdrive
commit de0d6f98ec1ab49af28049e2fe34ec064d10cf1a
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>
Change: (hyperdrive-download-url) Make async
---
hyperdrive.el | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/hyperdrive.el b/hyperdrive.el
index d27a80426a..72dd2b97ca 100644
--- a/hyperdrive.el
+++ b/hyperdrive.el
@@ -464,11 +464,15 @@ in a directory. Otherwise, or with universal prefix
argument
;; TODO(plz v0.10.0): In an upcoming version of `plz', nonexistent parent
;; directories will be created for us. At that point, remove this line.
(make-directory (file-name-parent-directory filename) t)
- (h/api 'get url :as `(file ,filename))
- ;; TODO: If plz adds support for getting response headers when downloading
- ;; as a file (<https://github.com/alphapapa/plz.el/issues/61>), use it
here.
- ;; Filling entry is necessary in order to update hyperdrive disk-usage.
- (he/fill (h/url-entry url))))
+ (h/api 'get url :as `(file ,filename)
+ :then (lambda (_)
+ (h/message "Downloaded `%s' to `%s'." url filename)
+ ;; TODO: If plz adds support for getting response headers when
downloading
+ ;; as a file (<https://github.com/alphapapa/plz.el/issues/61>),
use it here.
+ ;; Filling entry is necessary in order to update hyperdrive
disk-usage.
+ (he/fill (h/url-entry url)))
+ :else (lambda (plz-error)
+ (h/message "Unable to download: %s: %S" url plz-error)))))
;;;###autoload
(defun hyperdrive-write-buffer (entry &optional overwritep)
- [nongnu] elpa/hyperdrive updated (74cd5f6ce3 -> f78087ede8), ELPA Syncer, 2024/08/16
- [nongnu] elpa/hyperdrive de0d6f98ec 2/8: Change: (hyperdrive-download-url) Make async,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive 9524d30b2f 4/8: Docs: Update installation instructions, ELPA Syncer, 2024/08/16
- [nongnu] elpa/hyperdrive fd64117c35 5/8: Change: (he/within-version-range-p) Rename from he/within-version-range, ELPA Syncer, 2024/08/16
- [nongnu] elpa/hyperdrive f78087ede8 8/8: Tidy: (h/history-find-file) Use defun, not cl-defun, ELPA Syncer, 2024/08/16
- [nongnu] elpa/hyperdrive 0718055eef 7/8: Tidy: (h/dir--invalidate-entry) Remove unnecessary `and' check, ELPA Syncer, 2024/08/16
- [nongnu] elpa/hyperdrive 1e539c435c 3/8: Meta: Update changelog, ELPA Syncer, 2024/08/16
- [nongnu] elpa/hyperdrive bba6d9a8d0 6/8: Tidy: (h/history--invalidate-entry) Remove unnecessary `and' check, ELPA Syncer, 2024/08/16
- [nongnu] elpa/hyperdrive a234d3ee28 1/8: Fix: (hyperdrive-download-url) Create nonexistent parent directories, ELPA Syncer, 2024/08/16