[Pkg-debile-commits] [debile-master] 52/126: heh

Sylvestre Ledru sylvestre at alioth.debian.org
Mon Aug 19 14:56:13 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 695e979ba3a0c939e39759221a974a61743c0a50
Author: Paul Tagliamonte <tag at pault.ag>
Date:   Thu May 30 22:37:37 2013 -0400

    heh
---
 lucy/incoming.py |   22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/lucy/incoming.py b/lucy/incoming.py
index 39ab792..2bfac1f 100644
--- a/lucy/incoming.py
+++ b/lucy/incoming.py
@@ -61,10 +61,10 @@ def accept_source(config, changes):
     #send_mail("ACCEPTED: {source}/{version} for {owner} as {_id}".format(
     #    **obj), who['email'], "ACCEPTED!")
 
-    add_jobs(obj, 'source', config, 'source')
+    add_jobs(obj, 'source', config, 'source', changes)
 
 
-def add_jobs(package, package_type, config, klass):
+def add_jobs(package, package_type, config, klass, changes):
 
     for type in config['job_classes'][klass]:
         if klass == 'source':
@@ -83,14 +83,14 @@ def add_jobs(package, package_type, config, klass):
 
     if klass == 'source':
         # add builds
-        for suite in config['suites']:
-            for arch in config['arches']:
-                j = Job(arch=arch,
-                        suite=suite,
-                        type='build',
-                        package=package['_id'],
-                        package_type=package_type)
-                print("  -> Bin: ", j.save(), arch, suite)
+        suite = changes['Distribution']
+        for arch in config['arches']:
+            j = Job(arch=arch,
+                    suite=suite,
+                    type='build',
+                    package=package['_id'],
+                    package_type=package_type)
+            print("  -> Bin: ", j.save(), arch, suite)
 
 
 def accept_binary(config, changes):
@@ -121,7 +121,7 @@ def accept_binary(config, changes):
                     binaries=[os.path.basename(x) for x in binaries],
                     builder=buildd['_id'])
     binary.save()
-    add_jobs(binary, 'binary', config, 'binary')
+    add_jobs(binary, 'binary', config, 'binary', changes)
 
     path = move_to_pool(config, binary['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