sanger-pathogens / mlst_check

Multilocus sequence typing by blast using the schemes from PubMLST
http://sanger-pathogens.github.io/mlst_check/
Other
30 stars 16 forks source link

Ticket 442599 Fix database updated #50

Closed bewt85 closed 9 years ago

bewt85 commented 9 years ago

If the alleles changed then the database used to get corrupted. This was because it merged the old and the new alleles and got confused. This PR downloads the new data to a staging area. If that went smoothly it then overwrites all of the old data with the new data.

Only updated species are affected. If there is a problem downloading the new data, none of the species are updated.

bewt85 commented 9 years ago

@carlacummins, as discussed I've fixed it so that the database isn't wiped out if there is a network issue and added some (hacky) tests.