[Qa-jenkins-scm] [jenkins.debian.net] 02/02: move some functions further below
Holger Levsen
holger at moszumanska.debian.org
Wed Jan 6 22:03:50 UTC 2016
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 5b9c7a0dc6c58f67b7adfe6cb73fec0b55a1f025
Author: Holger Levsen <holger at layer-acht.org>
Date: Wed Jan 6 23:03:39 2016 +0100
move some functions further below
---
job-cfg/chroot-installation.yaml.py | 51 ++++++++++++++++++++-----------------
1 file changed, 28 insertions(+), 23 deletions(-)
diff --git a/job-cfg/chroot-installation.yaml.py b/job-cfg/chroot-installation.yaml.py
index ea0aec2..a5e5b53 100755
--- a/job-cfg/chroot-installation.yaml.py
+++ b/job-cfg/chroot-installation.yaml.py
@@ -96,28 +96,6 @@ def is_target_in_distro(distro, target):
return True
#
-# return the list of targets, filtered to be those present in 'distro'
-#
-def get_targets_in_distro(distro):
- return [t for t in all_targets if is_target_in_distro(distro, t)]
-
-#
-# given a target, returns a list of ([dist], key) tuples, so we can handle the
-# edu packages having views that are distro dependant
-#
-# this groups all the distros that have matching views
-#
-def get_dists_per_key(target,get_distro_key):
- dists_per_key = {}
- for distro in base_distros:
- if is_target_in_distro(distro, target):
- key = get_distro_key(distro)
- if key not in dists_per_key.keys():
- dists_per_key[key] = []
- dists_per_key[key].append(distro)
- return dists_per_key
-
-#
# who gets mail for which target
#
def get_recipients(target):
@@ -173,6 +151,10 @@ def get_spoken_name(target):
return target
#
+# nothing to edit below
+#
+
+#
# This structure contains the differences between the default, upgrade and upgrade_apt+dpkg_first jobs
#
jobspecs = [
@@ -199,9 +181,32 @@ jobspecs = [
},
]
+# some functions first…
+
#
-# nothing to edit below
+# return the list of targets, filtered to be those present in 'distro'
+#
+def get_targets_in_distro(distro):
+ return [t for t in all_targets if is_target_in_distro(distro, t)]
+
+#
+# given a target, returns a list of ([dist], key) tuples, so we can handle the
+# edu packages having views that are distro dependant
+#
+# this groups all the distros that have matching views
#
+def get_dists_per_key(target,get_distro_key):
+ dists_per_key = {}
+ for distro in base_distros:
+ if is_target_in_distro(distro, target):
+ key = get_distro_key(distro)
+ if key not in dists_per_key.keys():
+ dists_per_key[key] = []
+ dists_per_key[key].append(distro)
+ return dists_per_key
+
+
+# main…
data = []
jobs = []
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list