Last modified: 2013-07-28 13:18:12 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T54081, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52081 - Add new dirent types in the zimlib
Add new dirent types in the zimlib
Status: RESOLVED FIXED
Product: openZIM
Classification: Unclassified
zimlib (Other open bugs)
unspecified
All All
: Unprioritized enhancement
: ---
Assigned To: Tommi Mäkitalo
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-26 06:40 UTC by Kelson [Emmanuel Engelhart]
Modified: 2013-07-28 13:18 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kelson [Emmanuel Engelhart] 2013-07-26 06:40:38 UTC
For zimdiff and zimpatch, we need to store new types of entry:
* redirects to articles which are not in the ZIM file (article was not modified, but a new redirect was created)
* entries to delete
Comment 1 Tommi Mäkitalo 2013-07-28 12:02:22 UTC
The type is encoded in the mime type field just like redirects. Redirects have the mime type 0xffff, link targets 0xfffe and deleted entries 0xfffd.

Methods isLinktarget and isDeleted in zim::Article and zim::Dirent help detecting the types.

The zim creator interface zim::writer::Article got 2 new virtual methods isLinktarget and isDeleted with default implementations which return false.
Comment 2 Kelson [Emmanuel Engelhart] 2013-07-28 13:18:12 UTC
Thx you, also for having updated the specs:
http://www.openzim.org/w/index.php?title=ZIM_file_format&diff=2719&oldid=2659

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links