[Pkg-debile-commits] [debile-slave] 26/100: challah please
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 12860c1c0b578f17bcb7f6f25e2eed09b5776557
Author: Paul Tagliamonte <tag at pault.ag>
Date: Sun May 26 15:46:08 2013 -0400
challah please
---
ethel/utils.py | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/ethel/utils.py b/ethel/utils.py
index b0e2e94..3615c07 100644
--- a/ethel/utils.py
+++ b/ethel/utils.py
@@ -2,6 +2,7 @@ from ethel.error import EthelError
from contextlib import contextmanager
from debian import deb822
+import configparser
import subprocess
import tempfile
import shutil
@@ -69,3 +70,25 @@ def jobize(path, job):
obj['X-Lucy-Job'] = job
obj.dump(fd=open(path, 'wb'))
return obj
+
+
+def prepare_binary_for_upload(changes, job, obj):
+ jobize(changes, job)
+ gpg = obj['gpg']
+ out, err, ret = run_command(['debsign', '-k%s' % (gpg), changes])
+ if ret != 0:
+ raise Exception("bad debsign")
+
+
+def upload(changes, job):
+ cfg = configparser.ConfigParser()
+ if cfg.read("/etc/ethel.ini") == []:
+ raise Exception("WTF no ethel")
+ obj = cfg['host']
+
+ prepare_binary_for_upload(changes, job, obj)
+
+ out, err, ret = run_command(['dput', obj['dput-host'], changes])
+ if ret != 0:
+ print(err)
+ raise Exception("dput sux")
--
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