summaryrefslogtreecommitdiffstats
path: root/job-cfg
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-01-06 23:03:39 +0100
committerHolger Levsen <holger@layer-acht.org>2016-01-06 23:03:39 +0100
commit5b9c7a0dc6c58f67b7adfe6cb73fec0b55a1f025 (patch)
tree2c74df8df7f9685c0b1cbb36c15fba96611d2020 /job-cfg
parent5c9d4a1a30d6e775e78e25029d43b2eeb7873d83 (diff)
downloadjenkins.debian.net-5b9c7a0dc6c58f67b7adfe6cb73fec0b55a1f025.tar.xz
move some functions further below
Diffstat (limited to 'job-cfg')
-rwxr-xr-xjob-cfg/chroot-installation.yaml.py51
1 files changed, 28 insertions, 23 deletions
diff --git a/job-cfg/chroot-installation.yaml.py b/job-cfg/chroot-installation.yaml.py
index ea0aec2a..a5e5b534 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 = []