Commit c3c7293e authored by Guillaume Hervier's avatar Guillaume Hervier Committed by Rafael Monnerat

Fix condition when checking changes on restore

parent c396d831
......@@ -243,9 +243,8 @@ class MirrorStruct:
for mir_rorp, target_rorp in collated:
if Globals.preserve_hardlinks and mir_rorp:
Hardlink.add_rorp(mir_rorp, target_rorp)
if (not target_rorp or not mir_rorp or
not mir_rorp == target_rorp or
(Globals.preserve_hardlinks and not
if not (target_rorp and mir_rorp and target_rorp == mir_rorp and
(not Globals.preserve_hardlinks or
Hardlink.rorp_eq(mir_rorp, target_rorp))):
diff = cls.get_diff(mir_rorp, target_rorp)
else: diff = None
......
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