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
Xavier Thompson
slapos.buildout
Commits
9033b31d
Commit
9033b31d
authored
Apr 07, 2017
by
Kazuhiko Shiozaki
Committed by
Xavier Thompson
Oct 31, 2023
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
5afeeacc
Changes
1
Show 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 @
9033b31d
...
@@ -155,7 +155,12 @@ if is_win32:
...
@@ -155,7 +155,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