[Pkg-debile-commits] [debile-slave] 08/100: tweaks

Sylvestre Ledru sylvestre at alioth.debian.org
Mon Aug 19 14:52:59 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 9da21b364a264fb136acf260fce40602fea11d56
Author: Paul Tagliamonte <tag at pault.ag>
Date:   Wed May 22 14:52:38 2013 -0400

    tweaks
---
 ethel/commands/piuparts.py |   14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/ethel/commands/piuparts.py b/ethel/commands/piuparts.py
index e8d4bc7..a8e9de0 100644
--- a/ethel/commands/piuparts.py
+++ b/ethel/commands/piuparts.py
@@ -7,7 +7,12 @@ import os
 import re
 
 
+LINE_INFO = re.compile(
+    r"(?P<minutes>\d+)m(?P<sec>(\d(\.?))+)s (?P<severity>\w+): (?P<info>.*)")
+
+
 def piuparts(chroot, package):
+    analysis = generate_analysis("piuparts", "unstable", package)
     tarball = get_tarball(chroot)
 
     name = os.path.basename(tarball)
@@ -30,6 +35,7 @@ def piuparts(chroot, package):
 
         failed = False
         try:
+            print("Running Piuparts..")
             out, err = scmd(session, [
                 'piuparts',
                     '-b', internal_path,
@@ -41,12 +47,11 @@ def piuparts(chroot, package):
             out, err = e.out, e.err
             failed = True
 
-        return parse_log(out.splitlines(), package)
+        for x in parse_log(out.splitlines(), package):
+            analysis.results.append(x)
+    return analysis
 
 
-LINE_INFO = re.compile(
-    r"(?P<minutes>\d+)m(?P<sec>(\d(\.?))+)s (?P<severity>\w+): (?P<info>.*)")
-
 def parse_log(lines, path):
     obj = None
     info = None
@@ -86,6 +91,7 @@ def parse_log(lines, path):
 
         info = match.groupdict()
         if info['severity'] in ['DEBUG', 'DUMP', 'INFO']:
+            cur_msg = ""
             continue
 
         if obj:

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