[neurodebian]
# Release files of all repositories to be contained in the website
releases =
+ http://neuro.debian.net/debian/dists/data/Release
http://neuro.debian.net/debian/dists/dapper/Release
http://neuro.debian.net/debian/dists/gutsy/Release
http://neuro.debian.net/debian/dists/hardy/Release
http://neuro.debian.net/debian/dists/sid/Release
[release codenames]
+data = Datasets
etch = Debian GNU/Linux 4.0 (etch)
lenny = Debian GNU/Linux 5.0 (lenny)
squeeze = Debian testing (squeeze)
# that allow proper sorting (upgradability) across distribution releases
# For Debian we'll use ndXX (where XX is the version of the Debian release,
# e.g. 50; analog to backports.org) and for Ubuntu we'll use ndXX.XX.
+data = nd
etch = nd40
lenny = nd50
squeeze = nd60
def nitrc_get(spec, fail=False):
nitrc_url = 'http://www.nitrc.org/export/site/projects.json.php'
try:
+ # change into this from python 2.6 on
+ #data = json.loads(urllib2.urlopen(nitrc_url + '?spec=%s' % spec).read())
data = json.read(urllib2.urlopen(nitrc_url + '?spec=%s' % spec).read())
print "NITRC-SUCCESS:", spec
except urllib2.HTTPError, e:
repos = {}
for release in cfg.options('release codenames'):
+ if release == 'data':
+ # no seperate list for the data archive
+ continue
transrel = trans_codename(release, cfg)
repos[transrel] = []
for mirror in cfg.options('mirrors'):
listname = 'neurodebian.%s.%s.sources.list' % (release, mirror)
repos[transrel].append((mirror, listname))
lf = open(os.path.join(outdir, '_static', listname), 'w')
- aptcfg = '%s %s main contrib non-free\n' % (cfg.get('mirrors', mirror),
- release)
- lf.write('deb %s' % aptcfg)
- lf.write('deb-src %s' % aptcfg)
+ for rel in ('data', release):
+ aptcfg = '%s %s main contrib non-free\n' % (cfg.get('mirrors', mirror),
+ rel)
+ lf.write('deb %s' % aptcfg)
+ lf.write('#deb-src %s' % aptcfg)
lf.close()
srclist_template = jinja_env.get_template('sources_lists.rst')