[Pkg-debile-commits] [debile-master] 11/126: updating server
Sylvestre Ledru
sylvestre at alioth.debian.org
Mon Aug 19 14:56:06 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 b4b74d417c086589acf460258d7a9e22992e8cb6
Author: Paul Tagliamonte <tag at pault.ag>
Date: Wed May 22 21:24:24 2013 -0400
updating server
---
lucy/models/report.py | 4 +++-
lucy/server.py | 6 ++++--
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/lucy/models/report.py b/lucy/models/report.py
index e143312..6b18ec9 100644
--- a/lucy/models/report.py
+++ b/lucy/models/report.py
@@ -7,12 +7,14 @@ from lucy.models.job import Job
class Report(LucyObject):
_type = 'reports'
- def __init__(self, report, builder, package, job, **kwargs):
+ def __init__(self, report, log, builder, package, job, failed, **kwargs):
builder = Machine.load(builder)['_id']
package = Package.load(package)['_id']
job = Job.load(job)['_id']
super(Report, self).__init__(builder=builder,
package=package,
report=report,
+ failed=failed,
+ log=log,
job=job,
**kwargs)
diff --git a/lucy/server.py b/lucy/server.py
index 15e153b..14f732c 100644
--- a/lucy/server.py
+++ b/lucy/server.py
@@ -78,7 +78,7 @@ class LucyInterface(object):
job.save()
return dict(job)
- def submit_report(self, job, report):
+ def submit_report(self, job, report, log, failed):
job = Job.load(job)
if job.is_finished():
raise ValueError("Job is finished")
@@ -90,9 +90,11 @@ class LucyInterface(object):
raise ValueError("Machine isn't assigned.")
r = Report(builder=get_builder_id(),
+ package=job['package'],
job=job['_id'],
+ failed=failed,
report=report,
- package=job['package'])
+ log=log)
return r.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