Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asdf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Didier Verna
asdf
Commits
da7505a8
Commit
da7505a8
authored
Apr 01, 2017
by
Francois-Rene Rideau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecate require-system
parent
bcfbac2f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
backward-interface.lisp
backward-interface.lisp
+9
-3
operate.lisp
operate.lisp
+1
-8
No files found.
backward-interface.lisp
View file @
da7505a8
...
...
@@ -16,7 +16,7 @@
#:operation-on-failure
#:operation-on-warnings
#:on-failure
#:on-warnings
#:component-property
#:run-shell-command
#:system-definition-pathname
#:system-registered-p
#:system-definition-pathname
#:system-registered-p
#:require-system
#:explain
))
(
in-package
:asdf/backward-interface
)
...
...
@@ -218,5 +218,11 @@ The value returned if true is a pair of a timestamp and a system object."
(
if-let
(
system
(
registered-system
name
))
(
cons
(
if-let
(
primary-system
(
registered-system
(
primary-system-name
name
)))
(
component-operation-time
'define-op
primary-system
))
system
))))
system
)))
(
defun
require-system
(
system
&rest
keys
&key
&allow-other-keys
)
"Ensure the specified SYSTEM is loaded, passing the KEYS to OPERATE, but do not update the
system or its dependencies if it has already been loaded."
(
declare
(
ignore
keys
))
(
unless
(
component-loaded-p
system
)
(
load-system
system
))))
operate.lisp
View file @
da7505a8
...
...
@@ -183,14 +183,7 @@ Note that this returns true even if the component is not up to date."
(
defun
already-loaded-systems
()
"return a list of the names of the systems that have been successfully loaded so far"
(
mapcar
'coerce-name
(
remove-if-not
'component-loaded-p
(
registered-systems*
))))
(
defun
require-system
(
system
&rest
keys
&key
&allow-other-keys
)
"Ensure the specified SYSTEM is loaded, passing the KEYS to OPERATE, but do not update the
system or its dependencies if it has already been loaded."
(
declare
(
ignore
keys
))
(
unless
(
component-loaded-p
system
)
(
load-system
system
))))
(
mapcar
'coerce-name
(
remove-if-not
'component-loaded-p
(
registered-systems*
)))))
;;;; Define the class REQUIRE-SYSTEM, to be hooked into CL:REQUIRE when possible,
...
...
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