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
bd9fb396
Commit
bd9fb396
authored
Nov 07, 2013
by
jctanner
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4801 from sspans/devel
Add support for relative symlinks
parents
3cdb968e
904a129a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
+1
-2
library/files/file
+1
-2
No files found.
library/files/file
View file @
bd9fb396
...
@@ -280,6 +280,7 @@ def main():
...
@@ -280,6 +280,7 @@ def main():
elif
state
in
[
'link'
,
'hard'
]:
elif
state
in
[
'link'
,
'hard'
]:
if
state
==
'hard'
:
if
os
.
path
.
isabs
(
src
):
if
os
.
path
.
isabs
(
src
):
abs_src
=
src
abs_src
=
src
else
:
else
:
...
@@ -292,8 +293,6 @@ def main():
...
@@ -292,8 +293,6 @@ def main():
changed
=
True
changed
=
True
elif
prev_state
==
'link'
:
elif
prev_state
==
'link'
:
old_src
=
os
.
readlink
(
path
)
old_src
=
os
.
readlink
(
path
)
if
not
os
.
path
.
isabs
(
old_src
):
old_src
=
os
.
path
.
join
(
os
.
path
.
dirname
(
path
),
old_src
)
if
old_src
!=
src
:
if
old_src
!=
src
:
changed
=
True
changed
=
True
elif
prev_state
==
'hard'
:
elif
prev_state
==
'hard'
:
...
...
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