[Pkg-debile-commits] [debile-master] 23/126: nice

Sylvestre Ledru sylvestre at alioth.debian.org
Mon Aug 19 14:56:08 UTC 2013


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

sylvestre pushed a commit to branch scan-build-html
in repository debile-master.

commit 3126d9512c9c3c106027784cb72fa6d8e433701f
Author: Paul Tagliamonte <tag at pault.ag>
Date:   Sun May 26 12:00:51 2013 -0400

    nice
---
 lucy/incoming.py |   12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/lucy/incoming.py b/lucy/incoming.py
index 24a981e..39ccfdd 100644
--- a/lucy/incoming.py
+++ b/lucy/incoming.py
@@ -1,4 +1,4 @@
-from lucy import User, Source, Machine, Binary
+from lucy import User, Source, Machine, Binary, Job
 from lucy.archive import move_to_pool
 
 from lucy.changes import parse_changes_file, ChangesFileException
@@ -55,8 +55,16 @@ def accept_source(config, changes):
 
     print("ACCEPT: {source}/{version} for {owner} as {_id}".format(**obj))
     # source jobs
+    add_jobs(obj, 'source', config['job_classes']['source'])
 
 
+def add_jobs(package, package_type, types):
+    for type in types:
+        j = Job(package=package['_id'],
+                package_type=package_type,
+                type=type)
+        print("  -> Job: ", j.save(), type)
+
 
 def accept_binary(config, changes):
     key = changes.validate_signature()
@@ -86,7 +94,7 @@ def accept_binary(config, changes):
                     binaries=[os.path.basename(x) for x in binaries],
                     builder=buildd['_id'])
     binary.save()
-    # binary jobs
+    add_jobs(binary, 'binary', config['job_classes']['binary'])
 
     path = move_to_pool(config, source, changes, root=arch)
     os.unlink(changes.get_filename())

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-master.git



More information about the Pkg-debile-commits mailing list