From e38a4842d67143238b7c6db8cfab4926f3b2e2ff Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Fri, 6 Jun 2014 13:22:26 +0100 Subject: [PATCH] Make all output files series-specific, and remove dependency on "testing" and "unstable" symlinks. --- britney.conf | 14 +++++++------- britney.py | 2 ++ britney_nobreakall.conf | 14 +++++++------- 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/britney.conf b/britney.conf index d4b0b8b..1e270ae 100644 --- a/britney.conf +++ b/britney.conf @@ -1,16 +1,16 @@ # Configuration file for britney # Paths for control files -TESTING = data/testing -UNSTABLE = data/unstable +TESTING = data/%(UBUNTU_SERIES) +UNSTABLE = data/%(UBUNTU_SERIES)-proposed PARTIAL_UNSTABLE = yes # Output -NONINST_STATUS = data/non-installable-status -EXCUSES_OUTPUT = output/excuses.html -UPGRADE_OUTPUT = output/output.txt -HEIDI_OUTPUT = output/HeidiResult -DELTA_OUTPUT = output/Delta +NONINST_STATUS = data/%(UBUNTU_SERIES)/non-installable-status +EXCUSES_OUTPUT = output/%(UBUNTU_SERIES)/excuses.html +UPGRADE_OUTPUT = output/%(UBUNTU_SERIES)/output.txt +HEIDI_OUTPUT = output/%(UBUNTU_SERIES)/HeidiResult +DELTA_OUTPUT = output/%(UBUNTU_SERIES)/Delta # List of release architectures ARCHITECTURES = amd64 arm64 armhf i386 powerpc ppc64el diff --git a/britney.py b/britney.py index 757e2a8..7299f01 100755 --- a/britney.py +++ b/britney.py @@ -385,6 +385,8 @@ class Britney(object): self.MINDAYS = {} self.HINTS = {'command-line': self.HINTS_ALL} for k, v in [map(string.strip,r.split('=', 1)) for r in file(self.options.config) if '=' in r and not r.strip().startswith('#')]: + if self.options.ubuntu_series is not None: + v = v.replace("%(UBUNTU_SERIES)", self.options.ubuntu_series) if k.startswith("MINDAYS_"): self.MINDAYS[k.split("_")[1].lower()] = int(v) elif k.startswith("HINTS_"): diff --git a/britney_nobreakall.conf b/britney_nobreakall.conf index 140b4f8..ca4566f 100644 --- a/britney_nobreakall.conf +++ b/britney_nobreakall.conf @@ -1,16 +1,16 @@ # Configuration file for britney # Paths for control files -TESTING = data/testing -UNSTABLE = data/unstable +TESTING = data/%(UBUNTU_SERIES) +UNSTABLE = data/%(UBUNTU_SERIES)-proposed PARTIAL_UNSTABLE = yes # Output -NONINST_STATUS = data/non-installable-status -EXCUSES_OUTPUT = output/excuses.html -UPGRADE_OUTPUT = output/output.txt -HEIDI_OUTPUT = output/HeidiResult -DELTA_OUTPUT = output/Delta +NONINST_STATUS = data/%(UBUNTU_SERIES)/non-installable-status +EXCUSES_OUTPUT = output/%(UBUNTU_SERIES)/excuses.html +UPGRADE_OUTPUT = output/%(UBUNTU_SERIES)/output.txt +HEIDI_OUTPUT = output/%(UBUNTU_SERIES)/HeidiResult +DELTA_OUTPUT = output/%(UBUNTU_SERIES)/Delta # List of release architectures ARCHITECTURES = amd64 arm64 armhf i386 powerpc ppc64el