Skip to content

Commit 29cb626

Browse files
committed
update-dist: clean dist after update (remove old software) by default.
1 parent 8ce78a6 commit 29cb626

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

quicklisp/client.lisp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,16 @@
4848
(defun system-list ()
4949
(provided-systems t))
5050

51-
(defun update-dist (dist &key (prompt t))
51+
(defun update-dist (dist &key (prompt t) (cleanp t))
5252
(when (stringp dist)
5353
(setf dist (find-dist dist)))
5454
(let ((new (available-update dist)))
5555
(cond (new
5656
(show-update-report dist new)
5757
(when (or (not prompt) (press-enter-to-continue))
58-
(update-in-place dist new)))
58+
(update-in-place dist new)
59+
(when cleanp
60+
(clean dist))))
5961
((not (subscribedp dist))
6062
(format t "~&You are not subscribed to ~S."
6163
(name dist)))

0 commit comments

Comments
 (0)