openwebwork / webwork2

Course management front end for WeBWorK
http://webwork.maa.org/wiki/Main_Page
Other
141 stars 164 forks source link

Fix the OPL-update script (or really the download-OPL-metadata-release.pl script) #2367

Closed drgrice1 closed 3 months ago

drgrice1 commented 3 months ago

The download-OPL-metadata-release.pl is extracting the downloaded metadata release to the wrong directory, and so the rest of the script fails. It fails quietly, and doesn't actually restore any tables. So a die statement was added to cover this case.

drgrice1 commented 3 months ago

One way to test this is to drop one of the OPL tables in the database (like OPL_DBsubject), and then run the script. With the script currently in the develop branch that table will not be recreated. With this pull request it will be.