Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
slapos.buildout
Commits
1ff46efc
Commit
1ff46efc
authored
Apr 07, 2017
by
Kazuhiko Shiozaki
Committed by
Julien Muchembled
May 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduce a workaround for the shebang line length limitation in zc.buildout.easy_install.
parent
762a649d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/zc/buildout/easy_install.py
src/zc/buildout/easy_install.py
+6
-1
No files found.
src/zc/buildout/easy_install.py
View file @
1ff46efc
...
@@ -261,7 +261,12 @@ if is_win32:
...
@@ -261,7 +261,12 @@ if is_win32:
def
_safe_arg
(
arg
):
def
_safe_arg
(
arg
):
return
'"%s"'
%
arg
return
'"%s"'
%
arg
else
:
else
:
_safe_arg
=
str
def
_safe_arg
(
arg
):
if
len
(
arg
)
<
126
:
return
arg
else
:
# Workaround for the shebang line length limitation.
return
'/bin/sh
\
n
"exec" "%s" "$0" "$@"'
%
arg
def
call_subprocess
(
args
,
**
kw
):
def
call_subprocess
(
args
,
**
kw
):
if
subprocess
.
call
(
args
,
**
kw
)
!=
0
:
if
subprocess
.
call
(
args
,
**
kw
)
!=
0
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment