[Pkg-debile-commits] [debile-master] 46/126: moar fixes
Sylvestre Ledru
sylvestre at alioth.debian.org
Mon Aug 19 14:56:12 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 892ec9cff5d3225169ed09edbe45c897e125e8b5
Author: Paul Tagliamonte <tag at pault.ag>
Date: Thu May 30 19:22:59 2013 -0400
moar fixes
---
lucy/archive.py | 5 +++++
lucy/server.py | 10 ++++++++++
2 files changed, 15 insertions(+)
diff --git a/lucy/archive.py b/lucy/archive.py
index 399ff0f..eb24008 100644
--- a/lucy/archive.py
+++ b/lucy/archive.py
@@ -1,3 +1,4 @@
+import shutil
import os
@@ -16,6 +17,10 @@ def move_to_pool(config, package, changes, root=None):
path = os.path.join(pool, ret)
if root:
path = os.path.join(path, root)
+
+ if os.path.exists(path):
+ shutil.rmtree(path) # odd. very odd.
+
os.makedirs(path)
for entry in changes.get_files():
bn = os.path.basename(entry)
diff --git a/lucy/server.py b/lucy/server.py
index fb414be..f436602 100644
--- a/lucy/server.py
+++ b/lucy/server.py
@@ -73,6 +73,16 @@ class LucyInterface(object):
"""
return list(Job.assigned_jobs(get_builder_id()))
+ def forfeit_job(self, job):
+ j = Job.load(job)
+ buildd = j.get_builder()
+ if buildd['_id'] != get_builder_id():
+ return None # meh
+
+ j['assigned_at'] = None
+ j['builder'] = None
+ return j.save()
+
def get_next_job(self, suites, arches, types):
"""
Get an unassigned lint job from suite suites, arches arches
--
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