sbsdev / mdr2

Production Management Tool for DAISY Talking Books
GNU Affero General Public License v3.0
0 stars 0 forks source link

Archive path /var/spool/agadir/periodicals already exists #48

Closed egli closed 9 years ago

egli commented 9 years ago

When archiving a production we log an error and stop processing when the spool directory already contains a copy of the production. This makes sense in the context of books where the archiver clears the spool directory (and it really is a spool directory)

In the case of periodicals and other productions however the so called spool dir is never cleared (at least for the distribution master), so failing in that case is not the right thing to do

2015-05-06 12:31:36,526 ERROR [mdr2.archive] (Thread-1367 (HornetQ-client-global-threads-1394208467)) Archive path /var/spool/agadir/periodicals/dam20115 for periodical already exists

For periodicals and other productions we need to simply overwrite the artifact in the spool directory