[Pkg-debile-commits] [debile-slave] 59/100: log update

Sylvestre Ledru sylvestre at alioth.debian.org
Mon Aug 19 14:53:09 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 c553b5f4a6fa6314e0a1d239c8f79451b3b1bbcd
Author: Paul Tagliamonte <tag at pault.ag>
Date:   Sun Jun 2 15:14:28 2013 -0400

    log update
---
 ethel/daemon.py |   15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/ethel/daemon.py b/ethel/daemon.py
index f80b54d..00875e7 100644
--- a/ethel/daemon.py
+++ b/ethel/daemon.py
@@ -4,7 +4,7 @@ from firehose.model import (Analysis, Generator, Metadata,
 from ethel.commands import PLUGINS, load_module
 from ethel.client import get_proxy, checkout
 from contextlib import contextmanager
-from ethel.utils import tdir, cd
+from ethel.utils import tdir, cd, run_command
 from ethel.config import load
 
 import time
@@ -102,8 +102,17 @@ def iterate():
                              "binaries": "binary"}[package['_type']]
 
                     print("[ethel] - filing report")
-                    proxy.submit_report(firehose.to_json(),
-                                        log, job['_id'], err)
+                    report = proxy.submit_report(firehose.to_json(),
+                                                 job['_id'], err)
+                    remote_path = proxy.get_log_write_location(report)
+                    open('ethel-log', 'w').write(log)
+                    cmd = config['copy'].format(src='ethel-log',
+                                                dest=remote_path)
+                    out, err, ret = run_command(cmd)
+                    if ret != 0:
+                        print(out)
+                        raise Exception("SHIT.")
+
 
 def main():
     while True:

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