Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
diffoscope
Manage
Activity
Members
Labels
Plan
Issues
175
Issue boards
Milestones
Wiki
Code
Merge requests
15
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reproducible Builds
diffoscope
Commits
ef450c40
Commit
ef450c40
authored
7 years ago
by
Ximin Luo
Browse files
Options
Downloads
Patches
Plain Diff
comparators/zip: exec zipinfo, don't need the shell to hang around
parent
a7c1d23b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
diffoscope/comparators/zip.py
+1
-1
1 addition, 1 deletion
diffoscope/comparators/zip.py
with
1 addition
and
1 deletion
diffoscope/comparators/zip.py
+
1
−
1
View file @
ef450c40
...
...
@@ -38,7 +38,7 @@ class Zipinfo(Command):
# zipinfo (without -v) puts warning messages (some of which contain
# $path) into stdin when stderr is not a tty, see #879011 for details.
# to work around it, we run it on /dev/stdin instead, seems to work ok.
return
[
'
sh
'
,
'
-ec
'
,
'
zipinfo /dev/stdin <
"
$1
"'
,
'
-
'
,
self
.
path
]
return
[
'
sh
'
,
'
-ec
'
,
'
exec
zipinfo /dev/stdin <
"
$1
"'
,
'
-
'
,
self
.
path
]
def
filter
(
self
,
line
):
# we don't care about the archive file path
...
...
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