2011-04-26, 22:33
Hi, i've begun some code so that there can be one repository (named AppStore) that can aggregate addons from every repository.
I probably won't finish it, but its a nice proof-of-concept.
PS. I will be updating this post
The idea is that we give it to a trusted xbmc fanboy to run all the time non-stop on an old computer.
Its a script that auto-runs a check of other repositories addons.xml.md5 for changes every five or ten minutes (this control can be modified).
If it sees a change, it will check the addons.xml for what exactly changed (by comparing it with a local copy) and then dl the new addons via http. (new plan is to not use git or svn checking-out). it will also re-download the md5 and addons.xml so it can now use them to compare to the online copies.
It will then use the datadirzipped=... parameter to check if all the addons conform to the xbmc zip specification (if not it will run a script to do this), and put them into to a special AppStore local repo, which it will then auto-magically commit via SVN to an AppStore googlecode page.
It also gets the repos from the Unofficial Repo wiki page, and watches it for changes, so as to add new repos. It also every 12 hours completely redownloads all the repo files, in case a coder makes a change to their repo file....
Voila! A single Unofficial repo that contains all addons not provided in the official repo, whilst still allowing coders to maintain their independent repo.
This is mainly drawn from a frustration at there already being tens of repos floating around, some of which only contain a few addons (mine is no exception), and the fact that its often hard to get committer access to someone elses. This way, you make your own repo, add it to unofficial repo wiki and it will then show up in the aggregate.
I'm now hosting the POC at collabedit, because i will update it from time to time. Feel free to make any changes as long as they conform to what the purpose of the script is meant to do. (see above^^) and also please bump the version number if you do, so i can see that changes have been made.
I probably won't finish it, but its a nice proof-of-concept.
PS. I will be updating this post
The idea is that we give it to a trusted xbmc fanboy to run all the time non-stop on an old computer.
Its a script that auto-runs a check of other repositories addons.xml.md5 for changes every five or ten minutes (this control can be modified).
If it sees a change, it will check the addons.xml for what exactly changed (by comparing it with a local copy) and then dl the new addons via http. (new plan is to not use git or svn checking-out). it will also re-download the md5 and addons.xml so it can now use them to compare to the online copies.
It will then use the datadirzipped=... parameter to check if all the addons conform to the xbmc zip specification (if not it will run a script to do this), and put them into to a special AppStore local repo, which it will then auto-magically commit via SVN to an AppStore googlecode page.
It also gets the repos from the Unofficial Repo wiki page, and watches it for changes, so as to add new repos. It also every 12 hours completely redownloads all the repo files, in case a coder makes a change to their repo file....
Voila! A single Unofficial repo that contains all addons not provided in the official repo, whilst still allowing coders to maintain their independent repo.
This is mainly drawn from a frustration at there already being tens of repos floating around, some of which only contain a few addons (mine is no exception), and the fact that its often hard to get committer access to someone elses. This way, you make your own repo, add it to unofficial repo wiki and it will then show up in the aggregate.
I'm now hosting the POC at collabedit, because i will update it from time to time. Feel free to make any changes as long as they conform to what the purpose of the script is meant to do. (see above^^) and also please bump the version number if you do, so i can see that changes have been made.