Skip to content

Commit f39f87e

Browse files
committed
Clear the dist cache properly before recranking.
1 parent 161f8a7 commit f39f87e

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

dist-cache.lisp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22

33
(in-package #:quicklisp-controller)
44

5+
(defun clear-tar-cache ()
6+
(rm-rf "quicklisp-controller:dist;tar-cache;"))
7+
8+
(defun clear-build-cache ()
9+
(rm-rf "quicklisp-controller:dist;build-cache;"))
10+
11+
(defun clear-build-artifacts ()
12+
(rm-rf "quicklisp-controller:dist;build-artifacts;"))
13+
14+
(defun clear-dist-caches ()
15+
(clear-tar-cache)
16+
(clear-build-cache)
17+
(clear-build-artifacts))
18+
519
(defgeneric find-cached-release-tarball (source)
620
(:method (source)
721
(let* ((wild

recrank.lisp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
:subject "Quicklisp update failures"
1717
:from *report-to-email*
1818
:to *report-to-email*))))
19-
(run "rm" "-rf"
20-
(native-namestring
21-
(translate-logical-pathname #p"quicklisp-controller:dist;build-artifacts;")))
19+
(clear-dist-caches)
2220
(ensure-what-wins-you-can)
2321
(when report
2422
(with-skipping

utils.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
(defun rm-rf (path)
4444
(unless *rm-rf-debug*
45-
(run "rm" "-rf" (native path))))
45+
(run "rm" "-rf" (native (translate-logical-pathname path)))))
4646

4747
(defun call-in-temporary-directory (template-pathname fun)
4848
(flet ((random-temporary ()

0 commit comments

Comments
 (0)