Skip to content

Commit 66e06b0

Browse files
committed
fix to not try and check md5 when downloading dist
1 parent 34d1b0b commit 66e06b0

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

ql-https.lisp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@
1919
(let ((output (uiop:run-program (format nil "curl -fsSL ~A -o ~A" url file)
2020
:output '(:string :stripped t)
2121
:error-output :output))
22-
(file (and file (probe-file file))))
23-
(verify-download file (url-to-release url))
22+
(file (and file (probe-file file)))
23+
(release (url-to-release url)))
24+
(when release
25+
(verify-download file release))
2426
(values output file))
2527
(restart-case
2628
(handler-bind ((error (lambda (c)
@@ -41,9 +43,10 @@
4143

4244
(defun url-to-release (url)
4345
"extracts name of release from URL"
44-
(let* ((start (+ (search "/archive/" url) (length "/archive/")))
45-
(end (position #\/ url :start start)))
46-
(subseq url start end)))
46+
(when (search "/archive/" url)
47+
(let* ((start (+ (search "/archive/" url) (length "/archive/")))
48+
(end (position #\/ url :start start)))
49+
(subseq url start end))))
4750

4851
(defun md5 (file)
4952
"Returns md5sum of FILE"

0 commit comments

Comments
 (0)