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
Container registry
Model registry
Operate
Environments
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
Didier Verna
asdf
Commits
206d4b24
Commit
206d4b24
authored
11 years ago
by
Francois-Rene Rideau
Browse files
Options
Downloads
Patches
Plain Diff
Have run-shell-command actually return an exit code, like it used to.
Also, remove some extraneous comments from run-program.
parent
8f34937b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
backward-interface.lisp
+9
-1
9 additions, 1 deletion
backward-interface.lisp
uiop/run-program.lisp
+0
-2
0 additions, 2 deletions
uiop/run-program.lisp
with
9 additions
and
3 deletions
backward-interface.lisp
+
9
−
1
View file @
206d4b24
...
@@ -133,7 +133,15 @@ Deprecated function, for backward-compatibility only.
...
@@ -133,7 +133,15 @@ Deprecated function, for backward-compatibility only.
Please use UIOP:RUN-PROGRAM instead."
Please use UIOP:RUN-PROGRAM instead."
(
let
((
command
(
apply
'format
nil
control-string
args
)))
(
let
((
command
(
apply
'format
nil
control-string
args
)))
(
asdf-message
"; $ ~A~%"
command
)
(
asdf-message
"; $ ~A~%"
command
)
(
run-program
command
:force-shell
t
:ignore-error-status
t
:output
*verbose-out*
))))
(
handler-case
(
progn
(
run-program
command
:force-shell
t
:ignore-error-status
nil
:output
*verbose-out*
)
0
)
(
subprocess-error
(
c
)
(
let
((
code
(
subprocess-error-code
c
)))
(
typecase
code
(
integer
code
)
(
t
255
))))))))
(
with-upgradability
()
(
with-upgradability
()
(
defvar
*asdf-verbose*
nil
))
;; backward-compatibility with ASDF2 only. Unused.
(
defvar
*asdf-verbose*
nil
))
;; backward-compatibility with ASDF2 only. Unused.
...
...
This diff is collapsed.
Click to expand it.
uiop/run-program.lisp
+
0
−
2
View file @
206d4b24
...
@@ -392,7 +392,6 @@ ELEMENT-TYPE and EXTERNAL-FORMAT for the stream passed to the OUTPUT processor."
...
@@ -392,7 +392,6 @@ ELEMENT-TYPE and EXTERNAL-FORMAT for the stream passed to the OUTPUT processor."
(
redirected-system-command
(
command
out
)
(
redirected-system-command
(
command
out
)
(
format
nil
(
if
(
os-unix-p
)
"exec > ~*~A ; ~2:*~A"
"~A > ~A"
)
(
format
nil
(
if
(
os-unix-p
)
"exec > ~*~A ; ~2:*~A"
"~A > ~A"
)
(
system-command
command
)
(
native-namestring
out
)))
(
system-command
command
)
(
native-namestring
out
)))
;; this is only called if :OUTPUT is NIL or :INTERACTIVE
(
system
(
command
&key
interactive
)
(
system
(
command
&key
interactive
)
(
declare
(
ignorable
interactive
))
(
declare
(
ignorable
interactive
))
#+
(
or
abcl
xcl
)
(
ext:run-shell-command
command
)
#+
(
or
abcl
xcl
)
(
ext:run-shell-command
command
)
...
@@ -430,7 +429,6 @@ ELEMENT-TYPE and EXTERNAL-FORMAT for the stream passed to the OUTPUT processor."
...
@@ -430,7 +429,6 @@ ELEMENT-TYPE and EXTERNAL-FORMAT for the stream passed to the OUTPUT processor."
:element-type
element-type
:element-type
element-type
#-
gcl2.6
:external-format
#-
gcl2.6
external-format
)
#-
gcl2.6
:external-format
#-
gcl2.6
external-format
)
(
slurp-input-stream
output
stream
)))
(
slurp-input-stream
output
stream
)))
;; OUTPUT is either NIL (discard) or :INTERACTIVE
(
call-system
(
system-command
command
)
:interactive
interactive
)))))
(
call-system
(
system-command
command
)
:interactive
interactive
)))))
(
if
(
and
(
not
force-shell
)
(
if
(
and
(
not
force-shell
)
#+
(
or
clisp
ecl
)
ignore-error-status
#+
(
or
clisp
ecl
)
ignore-error-status
...
...
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