[Pkg-debile-commits] [debile-master] 116/126: Add flag to disable builds from config

Sylvestre Ledru sylvestre at alioth.debian.org
Mon Aug 19 14:56:26 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 5dc203d11176d21ab36784713db1dfa5ea803b9e
Author: Léo Cavaillé <leo at cavaille.net>
Date:   Tue Aug 6 14:50:07 2013 +0200

    Add flag to disable builds from config
---
 lucy/incoming.py |    6 ++++--
 skel/lucy.ini    |    3 +++
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/lucy/incoming.py b/lucy/incoming.py
index 733878c..5c582d9 100644
--- a/lucy/incoming.py
+++ b/lucy/incoming.py
@@ -99,7 +99,8 @@ def accept_source(changes):
             s.arch)
     add_jobs(s)
 
-
+# This method looks at lucy's configuration to see what jobs we need to run on
+# either a source/binary package.
 def add_jobs(package):
     config = Config()
     session = Session()
@@ -122,7 +123,8 @@ def add_jobs(package):
                 package.suite,
                 package.arch)
 
-    if package.type == 'source':
+    # If this a source package, add some build jobs    
+    if package.type == 'source' and config.get('jobs', 'build-enabled'):
         for arch in listize(config.get('jobs', 'arches')):
             j = Job(uuid=uuid.uuid4(),
                     arch=arch,
diff --git a/skel/lucy.ini b/skel/lucy.ini
index d891e5f..754022e 100644
--- a/skel/lucy.ini
+++ b/skel/lucy.ini
@@ -16,6 +16,9 @@ suites=unstable,testing
 ; Define the type of jobs you want to run with source package (comma separated 
 ; list). This must be ethel.commands module names
 source=lintian,clanganalyzer,perlcritic
+; Flag to disable the build jobs
+; This will also disable the binary jobs as a consequence
+builds-enabled=0
 ; Idem for binary packages
 binary=lintian,piuparts,adequate
 ; For the arches listed here by commas, lucy will create build

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