Commit 66ba31ae by Michael DeHaan

Fix bug in library/file

parent 6ba91a71
......@@ -318,8 +318,9 @@ elif state == 'link':
if os.path.isabs(src):
abs_src = src
else:
abs_src = os.path.join(os.path.dirname(dest))
if not os.path.exists(abssrc):
# FIXME: this does not seem correct? -- MPD
abs_src = os.path.dirname(dest)
if not os.path.exists(abs_src):
fail_json(dest=dest, src=src, msg='src file does not exist')
if prev_state == 'absent':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment