Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
5a918739
Commit
5a918739
authored
Feb 17, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resolve merge conflict
parent
15901e85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
library/copy
+4
-7
No files found.
library/copy
View file @
5a918739
...
...
@@ -99,19 +99,16 @@ def main():
if
os
.
path
.
exists
(
dest
):
if
not
thirsty
:
module
.
exit_json
(
msg
=
"file already exists"
,
src
=
src
,
dest
=
dest
,
changed
=
False
)
if
not
os
.
access
(
dest
,
os
.
W_OK
):
module
.
fail_json
(
msg
=
"Destination
%
s not writable"
%
(
dest
))
if
not
os
.
access
(
dest
,
os
.
R_OK
):
module
.
fail_json
(
msg
=
"Destination
%
s not readable"
%
(
dest
))
if
(
os
.
path
.
isdir
(
dest
)):
basename
=
os
.
path
.
basename
(
src
)
dest
=
os
.
path
.
join
(
dest
,
basename
)
md5sum_dest
=
module
.
md5
(
dest
)
if
os
.
access
(
dest
,
os
.
R_OK
):
md5sum_dest
=
module
.
md5
(
dest
)
else
:
if
not
os
.
path
.
exists
(
os
.
path
.
dirname
(
dest
)):
module
.
fail_json
(
msg
=
"Destination directory
%
s does not exist"
%
(
os
.
path
.
dirname
(
dest
)))
if
not
os
.
access
(
os
.
path
.
dirname
(
dest
),
os
.
W_OK
):
module
.
fail_json
(
msg
=
"Destination
%
s not writable"
%
(
os
.
path
.
dirname
(
dest
)))
if
not
os
.
access
(
os
.
path
.
dirname
(
dest
),
os
.
W_OK
):
module
.
fail_json
(
msg
=
"Destination
%
s not writable"
%
(
os
.
path
.
dirname
(
dest
)))
backup_file
=
None
if
md5sum_src
!=
md5sum_dest
or
os
.
path
.
islink
(
dest
):
...
...
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