+ avoid exiting if the library has no "local" books (so nothing to serve)

pull/9/head
kelson42 14 years ago
parent 1a2deeac46
commit 3ef8bcf3f4

@ -472,7 +472,6 @@ int main(int argc, char **argv) {
/* Check if the library is not empty (or only remote books)*/
if (libraryManager.getBookCount(true, false)==0) {
cerr << "The XML library file '" << libraryPath << "' is empty (or has only remote books)." << endl;
exit(1);
}
} else {
if (!libraryManager.addBookFromPath(zimPath, zimPath, "", false)) {

Loading…
Cancel
Save