[Pkg-debile-commits] [debile-slave] 48/100: moving around
Sylvestre Ledru
sylvestre at alioth.debian.org
Mon Aug 19 14:53:07 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 32f64a00f7d726b6ebbefdd076ad422e14771b7b
Author: Paul Tagliamonte <tag at pault.ag>
Date: Thu May 30 21:02:13 2013 -0400
moving around
---
ethel/daemon.py | 13 ++++++++++---
setup.py | 2 +-
2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/ethel/daemon.py b/ethel/daemon.py
index 39d061b..656c6ff 100644
--- a/ethel/daemon.py
+++ b/ethel/daemon.py
@@ -1,11 +1,13 @@
+from firehose.model import (Analysis, Generator, Metadata,
+ DebianBinary, DebianSource)
+
from ethel.commands import PLUGINS, load_module
from ethel.client import get_proxy, checkout
from contextlib import contextmanager
from ethel.utils import tdir, cd
from ethel.config import load
-from firehose.model import (Analysis, Generator, Metadata,
- DebianBinary, DebianSource)
+import time
config = load()
proxy = get_proxy()
@@ -102,4 +104,9 @@ def iterate():
print("[ethel] - filing report")
proxy.submit_report(firehose, log, job['_id'], err)
-iterate()
+def main():
+ while True:
+ try:
+ iterate()
+ except IDidNothingError:
+ time.sleep(10)
diff --git a/setup.py b/setup.py
index dee8202..72f68dd 100755
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ setup(
'console_scripts': [
# 'ethel-buildd = ethel.client:buildd',
# 'ethel-next = ethel.cli:next',
-# 'etheld = ethel.daemon:daemon',
+ 'etheld = ethel.daemon:main',
# 'ethel-close = ethel.cli:close',
# 'ethel-submit = ethel.cli:submit',
# 'ethel-dget-url = ethel.cli:dget',
--
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