[Pkg-debile-commits] [debile-slave] 96/100: Stringify the job id

Sylvestre Ledru sylvestre at alioth.debian.org
Mon Aug 19 14:53:17 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 82108aae9cfe925052c61e6c63b63283a1c1f5d0
Author: Léo Cavaillé <leo at cavaille.net>
Date:   Mon Jul 29 16:37:36 2013 +0200

    Stringify the job id
---
 ethel/utils.py |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/ethel/utils.py b/ethel/utils.py
index cd4174d..bf64e75 100644
--- a/ethel/utils.py
+++ b/ethel/utils.py
@@ -103,17 +103,17 @@ class EthelSubprocessError(EthelError):
         self.cmd = cmd
 
 
-def jobize(path, job):
+def jobize(path, job_id):
     f = open(path, 'r')
     obj = deb822.Deb822(f)
-    obj['X-Lucy-Job'] = job
+    obj['X-Lucy-Job'] = str(job_id)
     obj.dump(fd=open(path, 'wb'))
     return obj
 
 
-def prepare_binary_for_upload(changes, job):
+def prepare_binary_for_upload(changes, job_id):
     config = Config()
-    jobize(changes, job)
+    jobize(changes, job_id)
     gpg = config.get('gpg', 'fingerprint')
     out, err, ret = run_command(['debsign', '-k%s' % (gpg), changes])
     if ret != 0:
@@ -122,10 +122,10 @@ def prepare_binary_for_upload(changes, job):
         raise Exception("bad debsign")
 
 
-def upload(changes, job):
+def upload(changes, job_id):
     config = Config()
 
-    prepare_binary_for_upload(changes, job)
+    prepare_binary_for_upload(changes, job_id)
 
     out, err, ret = run_command(['dput', config.get('lucy', 'dput-host'), changes])
     if ret != 0:

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