Importing old format.

Dirk Hohndel dirk at hohndel.org
Thu Feb 7 02:09:21 PST 2013


Linus Torvalds <torvalds at linux-foundation.org> writes:

> On Thu, Feb 7, 2013 at 8:06 PM, Ďoďo <dodo.sk at gmail.com> wrote:
>> Henrik,
>>
>> Subsurface v2.1-520-g67604ccae325
>>
>> I build it from git under Debian testing.
>
> It's a very recent change: commit b9a19813eaa1 ("Import MacDive
> divelogs") causes this. Apparently it thinks that the old-style
> subsurface xml is a MacDive xml file, and "translates" it into
> something unrecognizable.
>
> Miika, it looks like you trigger on "dives" being the root entry,
> which really doesn't work, because it's the root entry for the old
> native subsurface format too!
>
> I don't know what we should trigger on, the example xml file I have is
> really generic. There's nothing that says "MacDive" there...

Can't you trigger on the DTD?

<!DOCTYPE MacDiveLogbook SYSTEM "http://www.mac-dive.com/macdive_logbook.dtd">

/D


More information about the subsurface mailing list