File tree 1 file changed +9
-8
lines changed
1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 84
84
(manifest-temp-path (uiop :tmpize-pathname manifest-path)))
85
85
(message nil " Creating Gentoo/Portage distro files for ~a ..." pkg-ver)
86
86
(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 )
88
88
; ; Copy existing Manifest into temp file, dropping entries we're about
89
89
; ; 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 )
91
91
(when mfst-src
92
92
(loop
93
93
for line = (read-line mfst-src nil nil )
99
99
(loop for (mfst-type s-os-path d-os-path) in flist
100
100
when s-os-path
101
101
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)))))
108
109
(uiop :rename-file-overwriting-target manifest-temp-path manifest-path)
109
110
manifest-path)))
You can’t perform that action at this time.
0 commit comments