[Pkg-debile-commits] [debile-slave] 01/02: Using dictonaries and not objects in debile-slave

Léo Cavaillé leo.cavaille-guest at alioth.debian.org
Sun Aug 25 19:05:26 UTC 2013


This is an automated email from the git hooks/post-receive script.

leo.cavaille-guest pushed a commit to branch master
in repository debile-slave.

commit 4cbf659b026206d0e960fb553c15357c161e1217
Author: Léo Cavaillé <leo at cavaille.net>
Date:   Sun Aug 25 21:04:19 2013 +0200

    Using dictonaries and not objects in debile-slave
---
 debile/slave/commands/build.py |    2 +-
 debile/slave/runners/sbuild.py |    2 +-
 debile/slave/utils.py          |    4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/debile/slave/commands/build.py b/debile/slave/commands/build.py
index caf73a9..00f6000 100644
--- a/debile/slave/commands/build.py
+++ b/debile/slave/commands/build.py
@@ -24,7 +24,7 @@ def run(dsc, package, job, firehose):
 
     if not ftbfs:
         changes = changes[0]
-        upload(changes, job['id'], package)
+        upload(changes, job, package)
 
     return (firehose, out, ftbfs)
 
diff --git a/debile/slave/runners/sbuild.py b/debile/slave/runners/sbuild.py
index d06319a..4382b8c 100644
--- a/debile/slave/runners/sbuild.py
+++ b/debile/slave/runners/sbuild.py
@@ -75,7 +75,7 @@ def sbuild(package, suite, arch, compiler, analysis):
             "-c", chroot,
             "-v",
             "-d", suite,
-            "-j", "8",
+            "-j", "4",
             package,
         ])
     elif compiler == "clang-3.3":
diff --git a/debile/slave/utils.py b/debile/slave/utils.py
index c60dd5f..f0db6c4 100644
--- a/debile/slave/utils.py
+++ b/debile/slave/utils.py
@@ -105,7 +105,7 @@ class EthelSubprocessError(EthelError):
 def jobize(path, job):
     f = open(path, 'r')
     obj = deb822.Deb822(f)
-    obj['X-Lucy-Job'] = str(job.id)
+    obj['X-Lucy-Job'] = str(job['id'])
     obj.dump(fd=open(path, 'wb'))
     return obj
 
@@ -130,7 +130,7 @@ def upload(changes, job, package):
 
     prepare_binary_for_upload(changes, job)
     # Find the dput target we need
-    dput_target = "%s-%s" % (package.user.login, job.subtype)
+    dput_target = "%s-%s" % (package['user']['login'], job['subtype'])
 
     out, err, ret = run_command([
         'dput',

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