Skip Menu |

This queue is for tickets about the Parse-MediaWikiDump CPAN distribution.

Report information
The Basics
Id: 21322
Status: resolved
Priority: 0/
Queue: Parse-MediaWikiDump

People
Owner: triddle [...] cpan.org
Requestors: jidanni [...] jidanni.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Bug#386013: MediaWikiDump.pm: emphasize for XML not mysql
Date: Mon, 04 Sep 2006 22:56:08 +0800
From: Dan Jacobson <jidanni [...] jidanni.org>
X-debbugs-cc: bug-parse-mediawikidump@rt.cpan.org Package: libparse-mediawikidump-perl Version: 0.40-2 Severity: wishlist Please emphasize at the top of the man page that this is for XML dumps, not mysql dumps. Else one gets e.g., syntax error at line 1, column 0, byte 0 at /usr/share/perl5/Parse/MediaWikiDump.pm line 226 super mysterious error messages. Also say so in the Debian Description. Say what "various MediaWiki dump files" are there, i.e., currently XML page archive, XML links dump file. Also if one does $pages = Parse::MediaWikiDump::Pages->new($source); $links = Parse::MediaWikiDump::Links->new($source); both in a row copied from the top of the man page, one will get a similar error even from an XML dump. (And poking near it one sees if (m/^LOCK TABLES `pagelinks` WRITE;/) { making one think that you want mysql dumps.)
You are correct that the documentation is lacking in this regard however the module can handle one type of SQL dump file: the links dump file is in SQL format. I'll update the documentation to be more explicit and that'll ship out in the next release. Thanks for helping to bring this module to 1.0 status. :-) Tyler On Mon Sep 04 12:57:39 2006, jidanni@jidanni.org wrote: Show quoted text
> X-debbugs-cc: bug-parse-mediawikidump@rt.cpan.org > Package: libparse-mediawikidump-perl > Version: 0.40-2 > Severity: wishlist > > Please emphasize at the top of the man page that this is for XML > dumps, not mysql dumps. > > Else one gets e.g., > syntax error at line 1, column 0, byte 0 at > /usr/share/perl5/Parse/MediaWikiDump.pm line 226 > super mysterious error messages. > > Also say so in the Debian Description. Say what "various MediaWiki > dump files" are there, i.e., currently XML page archive, XML links > dump file. > > Also if one does > $pages = Parse::MediaWikiDump::Pages->new($source); > $links = Parse::MediaWikiDump::Links->new($source); > both in a row copied from the top of the man page, one will get a > similar error even from an XML dump. > > (And poking near it one sees > if (m/^LOCK TABLES `pagelinks` WRITE;/) { > making one think that you want mysql dumps.) >
Hi, I've released 0.91 which has the before mentioned documentation fixes as well as a few other bug fixes and testing expansion. I'm going to close this ticket as resolved, thanks for the bug report! Tyler