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

Ole Streicher olebole-guest at moszumanska.debian.org
Fri Dec 6 12:15:48 UTC 2013


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

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

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-hawki.git



More information about the debian-science-commits mailing list