]> git.donarmstrong.com Git - neurodebian.git/commitdiff
Add a permanent 'data' distribution.
authorMichael Hanke <michael.hanke@gmail.com>
Fri, 8 Oct 2010 15:29:55 +0000 (11:29 -0400)
committerMichael Hanke <michael.hanke@gmail.com>
Fri, 8 Oct 2010 15:29:55 +0000 (11:29 -0400)
neurodebian.cfg
neurodebian/dde.py

index c69875c6bdbcc278b442c65f1dd7c409f7154a6c..66c4b61c4e0f923d28b9a935a7772e71ddbc08c5 100644 (file)
@@ -44,6 +44,7 @@ us-tn = http://masi.vuse.vanderbilt.edu/neurodebian
 [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
@@ -58,6 +59,7 @@ releases =
  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)
@@ -79,6 +81,7 @@ maverick = Ubuntu upcoming release "Maverick Meerkat" (maverick)
 # 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
index 45afb25992e6b9daf3b849bb4a329a3cf91fd14f..dc2961c1cc589b77f7cc1b64a26f975a4b1225b3 100755 (executable)
@@ -432,6 +432,8 @@ def dde_get(url, fail=False):
 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:
@@ -602,16 +604,20 @@ def write_sourceslist(jinja_env, cfg, outdir):
 
     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')