Skip to content

Commit d3394d6

Browse files
committed
Removed unnecessary "uiop:"s per review.
1 parent 3b7cee3 commit d3394d6

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/koga/archive.lisp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@
8484
(manifest-temp-path (uiop:tmpize-pathname manifest-path)))
8585
(message nil "Creating Gentoo/Portage distro files for ~a..." pkg-ver)
8686
(uiop:ensure-all-directories-exist (list manifest-temp-path))
87-
(uiop:with-output-file (mfst-dest manifest-temp-path :if-exists :supersede)
87+
(with-open-file (mfst-dest manifest-temp-path :direction :output :if-exists :supersede)
8888
;; Copy existing Manifest into temp file, dropping entries we're about
8989
;; to create.
90-
(uiop:with-input-file (mfst-src manifest-path :if-does-not-exist nil)
90+
(with-open-file (mfst-src manifest-path :direction :input :if-does-not-exist nil)
9191
(when mfst-src
9292
(loop
9393
for line = (read-line mfst-src nil nil)
@@ -99,11 +99,12 @@
9999
(loop for (mfst-type s-os-path d-os-path) in flist
100100
when s-os-path
101101
do (copy-f s-os-path d-os-path)
102-
do (uiop:safe-format! mfst-dest "~a ~a ~d BLAKE2B ~a SHA512 ~a~%"
103-
mfst-type
104-
(os-path-fname d-os-path)
105-
(fbytes d-os-path)
106-
(calc-hash "blake2b" d-os-path)
107-
(calc-hash "sha512" d-os-path))))
102+
do (with-standard-io-syntax
103+
(format mfst-dest "~a ~a ~d BLAKE2B ~a SHA512 ~a~%"
104+
mfst-type
105+
(os-path-fname d-os-path)
106+
(fbytes d-os-path)
107+
(calc-hash "blake2b" d-os-path)
108+
(calc-hash "sha512" d-os-path)))))
108109
(uiop:rename-file-overwriting-target manifest-temp-path manifest-path)
109110
manifest-path)))

0 commit comments

Comments
 (0)