For those who don't know, this is the current format:
CODE
Package: package1
Priority: optional
Section: Misc
Version: 1.02
Architecture: arm
Maintainer: bob (bob@aol.com)
Filename: package1.ipk
Size: 457689
MD5Sum: 8175c563ab044f18b90d3324599643c8
Description: This is a game that rocks.
Priority: optional
Section: Misc
Version: 1.02
Architecture: arm
Maintainer: bob (bob@aol.com)
Filename: package1.ipk
Size: 457689
MD5Sum: 8175c563ab044f18b90d3324599643c8
Description: This is a game that rocks.
Then a new line, and the same code over and over. Although this might work, I don't think it's a very good idea. What if we want more than one line for the package description? What if we want more than one line for anything?
XML has been tried and it works great. Many programs have built in support for it and I really think we should adopt it for the new package managers. I propose the following format:
CODE
<project>
<name>Package1</name>
<priority>Optional</priority>
<section>Misc</section>
<version>1.02</version>
<architecture>arm</architecture>
<maintainer>Bob (bob@aol.com)</maintainer>
<filename>package1.ipk</filename>
<size>457689</size>
<md5>8175c563ab044f18b90d3324599643c8</md5>
<description>This is a game that rocks.</description>
</project>
<name>Package1</name>
<priority>Optional</priority>
<section>Misc</section>
<version>1.02</version>
<architecture>arm</architecture>
<maintainer>Bob (bob@aol.com)</maintainer>
<filename>package1.ipk</filename>
<size>457689</size>
<md5>8175c563ab044f18b90d3324599643c8</md5>
<description>This is a game that rocks.</description>
</project>
It's simple, easy to read, and it will be universally supported. Everything in between the project tags is tabbed over; I just can't get this bbs to display it right. It's also super-easy to add a new field if we want.
I apologize if this is already implemented, but if it isn't I ask that we start to try to. The ZSI will support the old file format and as well I will have it start outputting data in XML format. I think we should try and focus away from the old format though.
Any other developers want to give me their take on this? I don't mean to step on anyones toes here, but I'm just trying to find a way to make this efficient.