Use the “default” manifest putter because it’s actually not the default.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Fri, 16 Mar 2012 19:48:56 +0000 (20:48 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Fri, 16 Mar 2012 19:48:56 +0000 (20:48 +0100)
This fixes #260.

src/de/todesbaum/jsite/application/ProjectInserter.java

index 1859393..6b21697 100644 (file)
@@ -43,6 +43,7 @@ import de.todesbaum.jsite.gui.FileScanner;
 import de.todesbaum.jsite.gui.FileScannerListener;
 import de.todesbaum.util.freenet.fcp2.Client;
 import de.todesbaum.util.freenet.fcp2.ClientPutComplexDir;
+import de.todesbaum.util.freenet.fcp2.ClientPutDir.ManifestPutter;
 import de.todesbaum.util.freenet.fcp2.Connection;
 import de.todesbaum.util.freenet.fcp2.DirectFileEntry;
 import de.todesbaum.util.freenet.fcp2.FileEntry;
@@ -522,6 +523,7 @@ public class ProjectInserter implements FileScannerListener, Runnable {
                putDir.setVerbosity(Verbosity.ALL);
                putDir.setMaxRetries(-1);
                putDir.setEarlyEncode(false);
+               putDir.setManifestPutter(ManifestPutter.DEFAULT);
                for (String filename : files) {
                        FileEntry fileEntry = createFileEntry(filename, edition, containerFiles);
                        if (fileEntry != null) {