Compare commits

...

2 Commits

Author SHA1 Message Date
ec8030fc81 config : fix cache_dir_path value parsing error
Configparser's config.get returns a string and we want a Path. for the
moment convert it to Path directly.
2026-01-03 18:05:43 +01:00
f050dcc94f 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.
2026-01-03 18:02:20 +01:00
2 changed files with 5 additions and 4 deletions

View File

@@ -95,7 +95,7 @@ def load_config(config_path:str) -> Config:
config.get(roots_section, "remote") config.get(roots_section, "remote")
) )
other_config = OtherConfig( other_config = OtherConfig(
config.get(other_section, "cache_dir_path", fallback=DEFAULT_MISC_CACHE_DIR_PATH) Path(config.get(other_section, "cache_dir_path", fallback=DEFAULT_MISC_CACHE_DIR_PATH)).expanduser()
) )
args_bool = list() args_bool = list()

View File

@@ -12,9 +12,10 @@ def unisync_sync(synchroniser:Synchroniser, paths_manager:PathsManager):
print("Connected to the remote.") print("Connected to the remote.")
synchroniser.sync_files(paths_manager.get_paths_to_sync()) synchroniser.sync_files(paths_manager.get_paths_to_sync())
synchroniser.update_links(background=False) synchroniser.sync_links(paths_manager.get_paths_to_sync())
# TODO check the config options # TODO check the config options and do or don't do the following
synchroniser.update_links()
#synchroniser.mount_remote_dir() #synchroniser.mount_remote_dir()
synchroniser.close_ssh_master_connection() synchroniser.close_ssh_master_connection()