[Pkg-debile-commits] [debile-master] 117/126: Added method to copy scan-build reports

Sylvestre Ledru sylvestre at alioth.debian.org
Mon Aug 19 14:56:27 UTC 2013


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

sylvestre pushed a commit to branch scan-build-html
in repository debile-master.

commit c73178d263e66c954c2ba33456c6dadda79046d4
Author: Léo Cavaillé <leo at cavaille.net>
Date:   Tue Aug 6 15:06:20 2013 +0200

    Added method to copy scan-build reports
---
 lucy/server.py |   17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/lucy/server.py b/lucy/server.py
index c37a54d..616ca5f 100644
--- a/lucy/server.py
+++ b/lucy/server.py
@@ -87,8 +87,17 @@ class LucyInterface(object):
             dsc=s.dsc,
         )
 
-    def get_log_write_location(self, job_id):
-        path = os.path.join(config.get('paths', 'job'), str(job_id))
+    def get_scanbuildhtml_write_location(self, job_uuid):
+        path = os.path.join(config.get('paths', 'job'), str(job_uuid))
+        # FIXME : awful
+        if not os.path.exists(path):
+            os.makedirs(path)
+        path = os.path.join(path, 'scan-build')
+        # FIXME: unsafe code, we should verify if the job id exists
+        return path
+
+    def get_log_write_location(self, job_uuid):
+        path = os.path.join(config.get('paths', 'job'), str(job_uuid))
         # FIXME : awful
         if not os.path.exists(path):
             os.makedirs(path)
@@ -96,8 +105,8 @@ class LucyInterface(object):
         # FIXME: unsafe code, we should verify if the job id exists
         return path
 
-    def get_firehose_write_location(self, job_id):
-        path = os.path.join(config.get('paths', 'job'), str(job_id))
+    def get_firehose_write_location(self, job_uuid):
+        path = os.path.join(config.get('paths', 'job'), str(job_uuid))
         # FIXME : awful
         if not os.path.exists(path):
             os.makedirs(path)

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



More information about the Pkg-debile-commits mailing list