Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cl-tar-file
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
Container 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
cl-tar
cl-tar-file
Commits
26b009f5
Unverified
Commit
26b009f5
authored
3 years ago
by
Eric Timmons
Browse files
Options
Downloads
Patches
Plain Diff
Add :COMPESSION to WITH-OPEN-TAR-FILE
parent
2609c254
No related branches found
No related tags found
No related merge requests found
Pipeline
#5621
canceled
3 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/external-macros.lisp
+8
-3
8 additions, 3 deletions
src/external-macros.lisp
with
8 additions
and
3 deletions
src/external-macros.lisp
+
8
−
3
View file @
26b009f5
...
...
@@ -10,6 +10,7 @@
(
if-does-not-exist
nil
)
(
type
:auto
)
(
blocking-factor
20
)
(
compression
:auto
)
(
header-encoding
*default-header-encoding*
))
(
when
(
or
(
eq
direction
:io
)
(
eq
direction
:probe
))
(
error
"Cannot open tar-files in direction ~A"
direction
))
...
...
@@ -34,7 +35,8 @@
(
setf
tar-file
(
open-tar-file
stream
:direction
direction
:type
type
:blocking-factor
blocking-factor
:header-encoding
header-encoding
))
:header-encoding
header-encoding
:compression
compression
))
(
multiple-value-prog1
(
funcall
thunk
tar-file
)
(
setf
abort
nil
)))
...
...
@@ -51,6 +53,7 @@
(
if-exists
nil
)
(
if-does-not-exist
nil
)
(
type
:auto
)
(
compression
:auto
)
(
blocking-factor
20
)
(
header-encoding
'*default-header-encoding*
))
&body
body
)
...
...
@@ -64,7 +67,8 @@ DIRECTION must be either :INPUT or :OUTPUT.
IF-EXISTS and IF-DOES-NOT-EXIST are passed to OPEN if PATHNAME-OR-STREAM is not
a stream.
See OPEN-TAR-FILE for a description of TYPE, BLOCKING-FACTOR, and HEADER-ENCODING."
See OPEN-TAR-FILE for a description of TYPE, BLOCKING-FACTOR, HEADER-ENCODING,
and COMPRESSION."
(
when
(
or
(
eq
direction
:io
)
(
eq
direction
:probe
))
(
error
"Cannot open tar-files in direction ~A"
direction
))
`
(
call-with-open-tar-file
(
lambda
(
,
tar-file-var
)
,@
body
)
...
...
@@ -74,7 +78,8 @@ See OPEN-TAR-FILE for a description of TYPE, BLOCKING-FACTOR, and HEADER-ENCODIN
:if-does-not-exist
,
if-does-not-exist
:type
,
type
:blocking-factor
,
blocking-factor
:header-encoding
,
header-encoding
))
:header-encoding
,
header-encoding
:compression
,
compression
))
(
defmacro
do-entries
((
entry
tar-file
&optional
result
)
&body
body
)
...
...
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