|
|
@ -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():
|
|
|
|
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':
|
|
|
|