Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
re6stnet
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
Yohann D'Anello
re6stnet
Commits
3ea6efe3
Commit
3ea6efe3
authored
9 years ago
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix install of OpenVPN hooks
This fixes a regression caused by commit
8df410f7
parent
65cda477
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
setup.py
setup.py
+7
-3
No files found.
setup.py
View file @
3ea6efe3
...
...
@@ -27,9 +27,13 @@ def copy_file(self, infile, outfile, *args, **kw):
if
m
and
not
self
.
dry_run
:
log
.
info
(
"copying and adjusting %s -> %s"
,
infile
,
outfile
)
executable
=
self
.
distribution
.
command_obj
[
'build'
].
executable
with
open
(
outfile
,
"wb"
)
as
dst
:
dst
.
write
(
"#!%s%s
\
n
"
%
(
executable
,
m
.
group
(
1
)
or
''
))
dst
.
write
(
src
.
read
())
patched
=
"#!%s%s
\
n
"
%
(
executable
,
m
.
group
(
1
)
or
''
)
patched
+=
src
.
read
()
dst
=
os
.
open
(
outfile
,
os
.
O_CREAT
|
os
.
O_WRONLY
|
os
.
O_TRUNC
)
try
:
os
.
write
(
dst
,
patched
)
finally
:
os
.
close
(
dst
)
return
outfile
,
1
cls
,
=
self
.
__class__
.
__bases__
return
cls
.
copy_file
(
self
,
infile
,
outfile
,
*
args
,
**
kw
)
...
...
This diff is collapsed.
Click to expand it.
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