File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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)
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"
You can’t perform that action at this time.
0 commit comments