[Pkg-debile-commits] [debile-master] 57/126: feh

Sylvestre Ledru sylvestre at alioth.debian.org
Mon Aug 19 14:56:14 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 a3b36b9aa3d16e96eb88974eb7f3d482cf81e4cd
Author: Paul Tagliamonte <tag at pault.ag>
Date:   Sat Jun 1 15:41:08 2013 -0400

    feh
---
 lucy/models/binary.py |    5 +++++
 lucy/server.py        |    7 ++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/lucy/models/binary.py b/lucy/models/binary.py
index 0ba93d5..fd545b7 100644
--- a/lucy/models/binary.py
+++ b/lucy/models/binary.py
@@ -23,3 +23,8 @@ class Binary(LucyObject):
     def get_source(self):
         from lucy.models.source import Source
         return Source.load(self['source'])
+
+    def get_reports(self):
+        from lucy.models.report import Report
+        for x in Report.query({"package": self['_id']}):
+            yield x
diff --git a/lucy/server.py b/lucy/server.py
index 2594b7d..07da2a3 100644
--- a/lucy/server.py
+++ b/lucy/server.py
@@ -118,7 +118,9 @@ class LucyInterface(object):
                         job=job['_id'],
                         failed=failed)
 
-        path = os.path.join(config['pool'], uuid_to_path(job['_id']))
+        uuid_path = uuid_to_path(job['_id'])
+
+        path = os.path.join(config['pool'], uuid_path)
         if not os.path.exists(path):
             os.makedirs(path)
 
@@ -127,6 +129,9 @@ class LucyInterface(object):
         with open(path, 'w') as fd:
             fd.write(log)
 
+        report['log_path'] = os.path.join(uuid_path, 'log')
+        report.save()
+
         return report.save()
 
     def close_job(self, job):

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