[Pkg-debile-commits] [debile-slave] 36/100: meh

Sylvestre Ledru sylvestre at alioth.debian.org
Mon Aug 19 14:53:04 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 d8baf1d557f88c310654fc82805ccc638b918846
Author: Paul Tagliamonte <tag at pault.ag>
Date:   Tue May 28 23:05:41 2013 -0400

    meh
---
 ethel/client.py         |    5 +++--
 ethel/commands/build.py |   12 +++++++++---
 ethel/daemon.py         |    5 ++---
 3 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/ethel/client.py b/ethel/client.py
index 270a344..19bf443 100644
--- a/ethel/client.py
+++ b/ethel/client.py
@@ -28,7 +28,7 @@ def checkout(package):
 
     def source():
         dsc = "{source}_{version}.dsc".format(**package)
-        url = proxy.get_dsc_url(package['_id'])
+        url = proxy.get_dsc(package['_id'])
         dget(url)
         yield dsc
 
@@ -42,4 +42,5 @@ def checkout(package):
 
     with tdir() as where:
         with cd(where):
-            yield {"source": source, "binary": binary}[_type]()
+            for x in {"sources": source, "binaries": binary}[_type]():
+                yield x
diff --git a/ethel/commands/build.py b/ethel/commands/build.py
index aff8adc..051b142 100644
--- a/ethel/commands/build.py
+++ b/ethel/commands/build.py
@@ -1,5 +1,11 @@
+from ethel.runners.sbuild import sbuild
 
 
-
-def run(package, job):
-    print(package, job)
+def run(dsc, package, job):
+    suite = job['suite']
+    arch = job['arch']
+    ftbfs, out, info = sbuild(dsc, suite, arch)
+    print(ftbfs, info)
+    # fluxbox_1.3.5-1_amd64.changes
+    job = "{package}_{version}_{arch}.changes"
+    upload(changes, job)
diff --git a/ethel/daemon.py b/ethel/daemon.py
index 47d2a49..d53f827 100644
--- a/ethel/daemon.py
+++ b/ethel/daemon.py
@@ -36,8 +36,7 @@ def iterate():
     handler = load_module(job['type'])
     with tdir() as fd:
         with cd(fd):
-            checkout(package)
-            handler(package, job)
-
+            with checkout(package) as target:
+                handler(target, package, job)
 
 iterate()

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