From f050dcc94f53c3d20e87cada82e8a98e660a1013 Mon Sep 17 00:00:00 2001 From: furtest Date: Sat, 3 Jan 2026 18:02:20 +0100 Subject: [PATCH] runners : fix sync runner not synchronising links The wrong function was call in the sync runner (update_links instead of sync_links) which mean the links were updated remotly but never synchronised with the local. Call sync_links instead. We keep the call to update_links but set it to be in background. --- src/unisync/runners.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/unisync/runners.py b/src/unisync/runners.py index fd599f8..5798941 100644 --- a/src/unisync/runners.py +++ b/src/unisync/runners.py @@ -12,9 +12,10 @@ def unisync_sync(synchroniser:Synchroniser, paths_manager:PathsManager): print("Connected to the remote.") synchroniser.sync_files(paths_manager.get_paths_to_sync()) - synchroniser.update_links(background=False) - - # TODO check the config options + synchroniser.sync_links(paths_manager.get_paths_to_sync()) + + # TODO check the config options and do or don't do the following + synchroniser.update_links() #synchroniser.mount_remote_dir() synchroniser.close_ssh_master_connection()