[Pkg-debile-commits] [debile-slave] 25/100: jobthing
Sylvestre Ledru
sylvestre at alioth.debian.org
Mon Aug 19 14:53:02 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 fd3b64fe101861d0cfa2239ec722f22a371a5300
Author: Paul Tagliamonte <tag at pault.ag>
Date: Sun May 26 15:11:58 2013 -0400
jobthing
---
ethel/utils.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/ethel/utils.py b/ethel/utils.py
index da73838..b0e2e94 100644
--- a/ethel/utils.py
+++ b/ethel/utils.py
@@ -1,6 +1,7 @@
from ethel.error import EthelError
from contextlib import contextmanager
+from debian import deb822
import subprocess
import tempfile
import shutil
@@ -60,3 +61,11 @@ class EthelSubprocessError(EthelError):
self.err = err
self.ret = ret
self.cmd = cmd
+
+
+def jobize(path, job):
+ f = open(path, 'r')
+ obj = deb822.Deb822(f)
+ obj['X-Lucy-Job'] = job
+ obj.dump(fd=open(path, 'wb'))
+ return obj
--
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