-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathrecrank.lisp
37 lines (34 loc) · 1.18 KB
/
recrank.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
;;;; recrank.lisp
(in-package #:quicklisp-controller)
(defun recrank (&key (update t) (report t) (feeds t)
(publish-failure-report t)
parallel
(file #p"quicklisp:tmp;update-failures.txt"))
(clear-fasl-cache)
(preflight)
(clear-dist-caches)
(when update
(update-what-you-can :file file :parallel parallel)
(when (and file *report-to-email*)
(unless (empty-file-p file)
(mail-file file
:subject "Quicklisp update failures"
:from *report-to-email*
:to *report-to-email*))))
(ensure-what-wins-you-can)
(when report
(with-skipping
(mock-report :mail t))
(when (and publish-failure-report (report-publishing-enabled-p))
(let* ((report (failure-data t))
(url (publish-failure-report :failure-report report)))
(when feeds
(in-anonymous-directory
(write-feeds report "feeds/")
(publish-feeds "feeds/")))
(write-line url)))))
(defun recrank-to-file (file &rest args &key &allow-other-keys )
(with-open-file (*command-output* file
:direction :output
:if-exists :supersede)
(apply #'recrank :file file args)))