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
Jan Moringen
asdf
Commits
389ad52b
Commit
389ad52b
authored
21 years ago
by
Daniel Barlow
Browse files
Options
Downloads
Patches
Plain Diff
asdf-install now accepts HTTP URLs as well as package names/filenames
parent
2bc1f175
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
asdf-install.lisp
+14
-4
14 additions, 4 deletions
asdf-install.lisp
with
14 additions
and
4 deletions
asdf-install.lisp
+
14
−
4
View file @
389ad52b
...
...
@@ -135,8 +135,12 @@ an immediate concern
(
subseq
line
(
1+
colon
))))))
stream
))))
(
defun
download
(
package-name
file-name
)
(
let
((
url
(
format
nil
"http://www.cliki.net/~A?download"
package-name
)))
(
defun
download
(
package-name-or-url
file-name
)
(
let
((
url
(
if
(
string-equal
package-name-or-url
"http://"
:end1
7
)
package-name-or-url
(
format
nil
"http://www.cliki.net/~A?download"
package-name
))))
(
destructuring-bind
(
response
headers
stream
)
(
block
got
(
loop
...
...
@@ -249,8 +253,14 @@ an immediate concern
(
defvar
*temporary-files*
)
(
defun
temp-file-name
(
p
)
(
merge-pathnames
(
make-pathname
:type
"asdf-install-tmp"
)
(
merge-pathnames
p
)))
(
let*
((
pos-slash
(
position
#\/
p
:from-end
t
))
(
pos-dot
(
position
#\.
p
:start
(
or
pos-slash
0
))))
(
merge-pathnames
(
make-pathname
:name
(
subseq
p
(
if
pos-slash
(
1+
pos-slash
)
0
)
pos-dot
)
:type
"asdf-install-tmp"
))))
(
defun
run
(
&optional
(
packages
(
cdr
*posix-argv*
)))
(
destructuring-bind
(
source
system
name
)
(
where
)
...
...
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