[cpl-plugin-kmos] 04/04: Sort recipes by OCA

Ole Streicher olebole-guest at moszumanska.debian.org
Wed Nov 27 15:29:16 UTC 2013


This is an automated email from the git hooks/post-receive script.

olebole-guest pushed a commit to branch debian-template
in repository cpl-plugin-kmos.

commit 4ae49e82ff525b69feec0614686478e4ef7898ad
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Sun Nov 10 18:19:02 2013 +0100

    Sort recipes by OCA
---
 debian/create_sphinx.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/create_sphinx.py b/debian/create_sphinx.py
index ccf6703..be553f9 100644
--- a/debian/create_sphinx.py
+++ b/debian/create_sphinx.py
@@ -137,7 +137,11 @@ pipeline = sys.argv[1]
 cpl.Recipe.path = "recipes"
 recipes = [ cpl.Recipe(name) for name, version in cpl.Recipe.list() ]
 oca = file(os.path.join("calib", "gasgano", "config", pipeline + ".oca")).read()
+oca = oca[oca.find("action"):]
 recipes_oca = [recipe for recipe in recipes if recipe.__name__ in oca]
+index = [ oca.find(recipe.__name__) for recipe in recipes_oca ]
+recipes_oca = [r for (i, r) in sorted(zip(index, recipes_oca))]
+
 recipes_x = [recipe for recipe in recipes if not recipe.__name__ in oca]
 
 def par(recipe, template, delimiter = "", count = None):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/cpl-plugin-kmos.git



More information about the debian-science-commits mailing list