mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Updates repository_metadata.tools with new and correct file locations. The test toolshed moved around `file_path` multiple times since its inception, and old revisions might point at old location. This is a simple script that fixes the locations. It has a dry run mode that I've run successfully: ``` ---------------------------------------------------------------------- Dry run complete - no changes made to database ====================================================================== SUMMARY ====================================================================== Total RepositoryMetadata records processed: 25414 RepositoryMetadata with tools: 22497 Total tools examined: 40470 Tools with correct paths (unchanged): 3898 Tools with paths updated: 36572 - Tool file exists on disk: 33297 - Tool file missing (removed in later changeset): 3275 Tools with path construction errors: 0 ====================================================================== ``` it also write out json files for each repository as backups should this be needed. Closes https://github.com/galaxyproject/galaxy/issues/21454