update-repository shouldn't exit

This commit is contained in:
Alex Shinn 2019-01-11 08:48:45 +08:00
parent 1b3ccdaf1c
commit afd887e672

View file

@ -1145,9 +1145,9 @@
`(,(car repo) (url ,repo-uri) ,@(cdr repo))))))
(cond
((not (valid-repository? repo))
(die 2 "not a valid repository: " repo-uri))
(warn "not a valid repository: " repo-uri repo))
((not (create-directory* local-dir))
(die 2 "can't create directory: " local-dir))
(warn "can't create directory: " local-dir))
(else
(guard (exn (else (die 2 "couldn't write repository")))
(call-with-output-file local-tmp