Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
clpm
clpm
Commits
9fbec48e
Commit
9fbec48e
authored
Aug 13, 2019
by
Eric Timmons
Browse files
When installing a bundle, automatically sync a source if needed
parent
05f6de1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/clpm/cli/bundle/install.lisp
View file @
9fbec48e
...
...
@@ -55,7 +55,14 @@
(
log:info
"clpmfile located at ~S"
clpmfile-pathname
)
;; Get the lock file
(
if
(
probe-file
lockfile-pathname
)
(
setf
lockfile
(
read-lockfile
lockfile-pathname
))
(
handler-bind
((
source-no-such-object
(
lambda
(
c
)
(
declare
(
ignore
c
))
(
when
(
find-restart
'sync-and-retry
)
(
log:info
"Syncing source and retrying"
)
(
invoke-restart
'sync-and-retry
)))))
(
setf
lockfile
(
read-lockfile
lockfile-pathname
)))
(
progn
;; The lock file doesn't exist. Create it!
(
log:info
"syncing sources"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment