File tree Expand file tree Collapse file tree 7 files changed +41
-41
lines changed Expand file tree Collapse file tree 7 files changed +41
-41
lines changed Original file line number Diff line number Diff line change 219
219
220
220
(defun local-client-info ()
221
221
(let ((info-file (qmerge " client-info.sexp" )))
222
- (if (probe-file info-file)
223
- (load-client-info info-file)
224
- ( progn
225
- (warn " Missing client-info.sexp, using mock info" )
226
- (mock-client-info)))))
222
+ (cond ( (probe-file info-file)
223
+ (load-client-info info-file) )
224
+ ( t
225
+ (warn " Missing client-info.sexp, using mock info" )
226
+ (mock-client-info)))))
227
227
228
228
(defun newest-client-info (&optional (info (local-client-info)))
229
229
(let ((latest (subscription-url info)))
Original file line number Diff line number Diff line change 100
100
exclude-local-projects)
101
101
" Write a list of system file pathnames to OUTPUT-FILE, one per line,
102
102
in order of descending QL-DIST:PREFERENCE."
103
- (when (or (eql output-file nil )
103
+ (when (or (null output-file)
104
104
(eql output-file t ))
105
105
(setf output-file (qmerge " manifest.txt" )))
106
106
(with-open-file (stream output-file
Original file line number Diff line number Diff line change 83
83
,@ (mapcar (lambda (case )
84
84
(destructuring-bind (keys &rest body)
85
85
case
86
- ` (, (if (eql keys t )
87
- t
86
+ ` (, (or (eql keys t )
88
87
(convert-case-keys keys))
89
88
,@ body)))
90
89
cases))))
115
114
(with-slots (pattern pos)
116
115
matcher
117
116
(loop
118
- (cond ((= pos match-end)
119
- (let ((match-start (- i pos)))
120
- (setf pos 0 )
121
- (setf (matchedp matcher) t )
122
- (return (values match-start (+ match-start match-end)))))
123
- ((= i end)
124
- (return nil ))
125
- ((= (aref pattern pos)
126
- (aref input i))
127
- (incf i)
128
- (incf pos))
129
- ( t
130
- ( if error
131
- ( error ' match-failure )
132
- ( if ( zerop pos )
133
- ( incf i)
134
- (setf pos 0 )) )))))))
117
+ (cond ((= pos match-end)
118
+ (let ((match-start (- i pos)))
119
+ (setf pos 0 )
120
+ (setf (matchedp matcher) t )
121
+ (return (values match-start (+ match-start match-end)))))
122
+ ((= i end)
123
+ (return nil ))
124
+ ((= (aref pattern pos)
125
+ (aref input i))
126
+ (incf i)
127
+ (incf pos))
128
+ ( error
129
+ ( error ' match-failure))
130
+ (( zerop pos )
131
+ ( incf i) )
132
+ ( t
133
+ (setf pos 0 )))))))
135
134
136
135
(defun ascii-matcher (string )
137
136
(make-instance ' matcher
229
228
(call-processor fun cbuf (start cbuf) (end cbuf))))
230
229
231
230
(defun multi-cmatch (matchers cbuf)
232
- (let (start end)
231
+ (let ((start nil )
232
+ (end nil ))
233
233
(dolist (matcher matchers (values start end))
234
234
(multiple-value-bind (s e)
235
235
(match matcher (data cbuf)
328
328
(eql port 443 )
329
329
host
330
330
(or (null port)
331
- (eql port 80 )
332
- (eql port 443 ))
331
+ (= port 80 )
332
+ (= port 443 ))
333
333
port
334
334
path))
335
335
@@ -852,7 +852,7 @@ the indexes in the header accordingly."
852
852
:status-code (status header))))
853
853
(if (and follow-redirects (<= 300 (status header) 399 ))
854
854
(let ((new-urlstring (ascii-header-value " location" header)))
855
- (when ( not new-urlstring)
855
+ (unless new-urlstring
856
856
(error " Redirect code ~D received, but no Location: header"
857
857
(status header)))
858
858
(incf redirect-count)
Original file line number Diff line number Diff line change @@ -337,12 +337,12 @@ quicklisp at CL startup."
337
337
(ql-ccl :delete-directory pathname )))
338
338
339
339
(defimplementation (delete-directory-tree :qualifier :around ) (pathname )
340
- (if (directoryp pathname )
341
- (call-next-method )
342
- ( progn
343
- (warn " delete-directory-tree - not a directory, ~
344
- deleting anyway -- ~s " pathname )
345
- (delete-file pathname ))))
340
+ (cond ( (directoryp pathname )
341
+ (call-next-method ) )
342
+ ( t
343
+ (warn " delete-directory-tree - not a directory, ~
344
+ deleting anyway -- ~s " pathname )
345
+ (delete-file pathname ))))
346
346
347
347
(defun map-directory-tree (directory fun)
348
348
" Call FUN for every file in directory and all its subdirectories,
Original file line number Diff line number Diff line change 49
49
50
50
(defun local-project-system-files (pathname )
51
51
" Return a list of system files under PATHNAME."
52
- (let* ((files (matching-directory-files pathname
53
- (lambda (file)
54
- (equalp (pathname-type file)
55
- " asd" )))))
52
+ (let ((files (matching-directory-files pathname
53
+ (lambda (file)
54
+ (equalp (pathname-type file)
55
+ " asd" )))))
56
56
(setf files (sort files
57
57
#' string<
58
58
:key #' namestring ))
Original file line number Diff line number Diff line change 130
130
closes the connection afterwareds via CLOSE-CONNECTION in an
131
131
unwind-protect. See also WITH-CONNECTION." )
132
132
(:implementation t
133
- (let (connection)
133
+ (let (( connection nil ) )
134
134
(unwind-protect
135
135
(progn
136
136
(setf connection (open-connection host port))
Original file line number Diff line number Diff line change 18
18
(unless system
19
19
(error " Unknown system ~S " name))
20
20
(ensure-installed system)
21
- (mapcar #' recurse (required-systems system))
21
+ (mapc #' recurse (required-systems system))
22
22
name)))
23
23
(with-consistent-dists
24
24
(recurse name))))
You can’t perform that action at this time.
0 commit comments