Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asdf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tarn Burton
asdf
Commits
da7505a8
Commit
da7505a8
authored
7 years ago
by
Francois-Rene Rideau
Browse files
Options
Downloads
Patches
Plain Diff
Deprecate require-system
parent
bcfbac2f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
backward-interface.lisp
+9
-3
9 additions, 3 deletions
backward-interface.lisp
operate.lisp
+1
-8
1 addition, 8 deletions
operate.lisp
with
10 additions
and
11 deletions
backward-interface.lisp
+
9
−
3
View file @
da7505a8
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
#:operation-on-failure
#:operation-on-warnings
#:on-failure
#:on-warnings
#:operation-on-failure
#:operation-on-warnings
#:on-failure
#:on-warnings
#:component-property
#:component-property
#:run-shell-command
#:run-shell-command
#:system-definition-pathname
#:system-registered-p
#:system-definition-pathname
#:system-registered-p
#:require-system
#:explain
))
#:explain
))
(
in-package
:asdf/backward-interface
)
(
in-package
:asdf/backward-interface
)
...
@@ -218,5 +218,11 @@ The value returned if true is a pair of a timestamp and a system object."
...
@@ -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
))
(
if-let
(
system
(
registered-system
name
))
(
cons
(
if-let
(
primary-system
(
registered-system
(
primary-system-name
name
)))
(
cons
(
if-let
(
primary-system
(
registered-system
(
primary-system-name
name
)))
(
component-operation-time
'define-op
primary-system
))
(
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
))))
This diff is collapsed.
Click to expand it.
operate.lisp
+
1
−
8
View file @
da7505a8
...
@@ -183,14 +183,7 @@ Note that this returns true even if the component is not up to date."
...
@@ -183,14 +183,7 @@ Note that this returns true even if the component is not up to date."
(
defun
already-loaded-systems
()
(
defun
already-loaded-systems
()
"return a list of the names of the systems that have been successfully loaded so far"
"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*
))))
(
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
))))
;;;; Define the class REQUIRE-SYSTEM, to be hooked into CL:REQUIRE when possible,
;;;; Define the class REQUIRE-SYSTEM, to be hooked into CL:REQUIRE when possible,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment