Tristan wrote:I think that you need to decide exactly what your package manager is going to do before you decide on a scripting language.
Well. I'm tried of planning after 158 posts about the topic. There still things to think about e.g. that might the API look like, but most things are clear now.
A simple shell script would do the trick without the need for you to re-invent the wheel.
The problem is the error handling. How should a shell-script (or batch-file in windows) report to the program that something went wrong ?
I would like to see how things like error handling and dependency checking would work.
Maybe I should update the wiki. However the program works like this works like this:
1. download tree file from SVN (using http interface)
2. let the user browse trow the tree
3. If he clicks on a icon the description file (dependencies are listed here too) will be downloaded
4. he has chooses all packages he wants to install
5. the program downlaods the script files and interpretes them.
6. when something wents wrong the installation of the package will be stopped
Why not have a look at RPM, or Java Webstart, or even Installshield for ideas?
Actually I think, we have enough ideas here. And the this are no good sources for ideas.
It would save you a lot of work since your interpreter would simply be an XML parser.
We have ready thought about something like that, but i don't think that this is much harder to implement.