GNOME Bugzilla – Bug 132031
Needs way to have .modules files maintained elsewhere
Last modified: 2004-12-22 21:47:04 UTC
Jhbuild needs a way to be able to not have all .modules files maintained in Gnome CVS to become a generally viable tool. If it did something like a wget if a moduleset didn't exist from somewhere, then it could be used for many projects (e.g. freedesktop.org).
Sorry I haven't gotten round to this yet. I'll look at getting this sorted soon.
I've added some code to support external module sets now. Simply set moduleset to a URI in your ~/.jhbuildrc file, and it should work. A cached version of the remote moduleset file will be stored in ~/.jhbuild/cache/. By default, jhbuild will cache the file for 6 hours although the web server can override this by sending an Expires header. When the file expires, jhbuild sends If-Modified-Since and If-None-Match headers to speed things up for the common case when nothing changes. It still needs a bit of work to handle things like the --no-network argument (which should just use the cached version), but should work well enough to test out the new feature.
Closing the report because things seem to be working correctly. I was able to set my module_set to http://anoncvs.gnome.gr.jp/viewcvs.cgi/*checkout*/jhbuild/modulesets/gnome26.modules and everything worked. It even managed to download freedesktop.modules from the same directory. Subsequent calls to jhbuild used the cached version.