[Pkg-debile-commits] [debile-slave] 20/28: Used new style Config loading via instanciation

Sylvestre Ledru sylvestre at alioth.debian.org
Mon Aug 19 14:55:22 UTC 2013


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

sylvestre pushed a commit to branch master
in repository debile-slave.

commit e867b3befb20d92974bee930339213408ce326fd
Author: Léo Cavaillé <leo at cavaille.net>
Date:   Thu Aug 15 22:40:55 2013 +0200

    Used new style Config loading via instanciation
---
 ethel/runners/coccinelle.py |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/ethel/runners/coccinelle.py b/ethel/runners/coccinelle.py
index 1bd55dc..9dcd378 100644
--- a/ethel/runners/coccinelle.py
+++ b/ethel/runners/coccinelle.py
@@ -1,13 +1,12 @@
 from ethel.wrappers.coccinelle import parse_coccinelle
 from ethel.utils import run_command, cd
-from ethel.config import load
+from ethel.config import Config
 import os
 import glob
 
 def list_semantic_patches():
-    config = load()
-    print config["coccinelle_patches_folder"]
-    return glob.iglob(config["coccinelle_patches_folder"] + "*/*.cocci")
+    config = Config()
+    return glob.iglob(config.get("coccinelle", "coccinelle_patches_folder") + "*/*.cocci")
 
 def coccinelle(dsc, analysis):
     run_command(["dpkg-source", "-x", dsc, "source"])
@@ -15,7 +14,6 @@ def coccinelle(dsc, analysis):
         complete_out = ""
         failed = False
         for semantic_patch in list_semantic_patches():
-            print(semantic_patch)
             out, err, ret = run_command([
                     "spatch",
                     "-D", "firehose",

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-slave.git



More information about the Pkg-debile-commits mailing list