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
Hugo Ishimaru
asdf
Commits
9a92203a
Commit
9a92203a
authored
Jul 05, 2014
by
Robert P. Goldman
Browse files
Tweak definition of and export REINITIALIZE-SOURCE-REGISTRY-AND-RETRY.
parent
7ab2bdd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
find-system.lisp
View file @
9a92203a
...
...
@@ -21,7 +21,9 @@
#:clear-defined-system
#:clear-defined-systems
#:*defined-systems*
#:*immutable-systems*
;; defined in source-registry, but specially mentioned here:
#:initialize-source-registry
#:sysdef-source-registry-search
))
#:initialize-source-registry
#:sysdef-source-registry-search
#:reinitialize-source-registry-and-retry
))
(
in-package
:asdf/find-system
)
(
with-upgradability
()
...
...
@@ -426,6 +428,11 @@ PREVIOUS-TIME when not null is the time at which the PREVIOUS system was loaded.
(
reinitialize-source-registry-and-retry
()
:report
(
lambda
(
s
)
(
format
s
(
compatfmt
"~@<Retry finding system ~A after reinitializing the source-registry.~@:>"
)
name
))
(
unset-asdf-cache-entry
`
(
locate-system
,
name
))
(
initialize-source-registry
)))))))
;; since you're reinitializing the source registry, an arbitrary
;; amount of the ASDF cache is invalidated, not just the entry
;; for the current NAME.
(
clear-asdf-cache
)
;; (unset-asdf-cache-entry `(locate-system ,name))
(
initialize-source-registry
)
(
find-system
name
error-p
)))))))
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