[Pkg-debile-commits] [debile-slave] 02/28: Hack to retrieve the folder

Sylvestre Ledru sylvestre at alioth.debian.org
Mon Aug 19 14:55:18 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 8c6a2df3a60a1fb73298147807b3dd31c2bb3f1c
Author: Léo Cavaillé <leo at cavaille.net>
Date:   Tue Aug 6 16:01:01 2013 +0200

    Hack to retrieve the folder
---
 ethel/daemon.py |   23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

diff --git a/ethel/daemon.py b/ethel/daemon.py
index cac2e28..b94bbc6 100644
--- a/ethel/daemon.py
+++ b/ethel/daemon.py
@@ -110,20 +110,21 @@ def iterate():
                     out, err, ret = run_command(cmd)
                     ### SCANDALOUS HACK
                     if job['type'] == 'clanganalyzer':
+                        logging.info("SCANDALOUS HACK sending scan-build HTML reports")
                         remote_path = proxy.get_scanbuildhtml_write_location(job['uuid'])
-                        cmd = config.get('lucy', 'copy').format(src=out,
+                        cmd = config.get('lucy', 'copy').format(src=out[0],
                                                     dest=remote_path)
                         out, err, ret = run_command(cmd)
-
-                    logging.info("Sending the logs to the pool")
-                    remote_path = proxy.get_log_write_location(job['uuid'])
-                    open('ethel-log', 'wb').write(log.encode('utf-8'))
-                    cmd = config.get('lucy', 'copy').format(src='ethel-log',
-                                                dest=remote_path)
-                    out, err, ret = run_command(cmd)
-                    if ret != 0:
-                        print(out)
-                        raise Exception("SHIT.")
+                    if job['type'] != 'clanganalyzer':
+                        logging.info("Sending the logs to the pool")
+                        remote_path = proxy.get_log_write_location(job['uuid'])
+                        open('ethel-log', 'wb').write(log.encode('utf-8'))
+                        cmd = config.get('lucy', 'copy').format(src='ethel-log',
+                                                    dest=remote_path)
+                        out, err, ret = run_command(cmd)
+                        if ret != 0:
+                            print(out)
+                            raise Exception("SHIT.")
 
 
 def main():

-- 
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