Skip to content

Commit

Permalink
Merge pull request #452 from openzim/recreate_exclude_w
Browse files Browse the repository at this point in the history
Do not copy entry in 'W' namespace when recreating zim file.
  • Loading branch information
kelson42 authored Feb 10, 2025
2 parents bb7ae50 + 90a44a5 commit 3ad99a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zimrecreate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ void create(const std::string& originFilename, const std::string& outFilename, b
// We have to adapt the content to drop the namespace.

auto path = entry.getPath();
if (path[0] == 'Z' || path[0] == 'X' || path[0] == 'M') {
if (path[0] == 'Z' || path[0] == 'X' || path[0] == 'M' || path[0] == 'W') {
// Index is recreated by zimCreator. Do not add it
continue;
}
Expand Down

0 comments on commit 3ad99a1

Please sign in to comment.