From eb3fb3ef6ee92f7f264c2fd36e27c1231af77a13 Mon Sep 17 00:00:00 2001 From: Paul Gevers Date: Sat, 27 Apr 2019 22:35:09 +0200 Subject: [PATCH] Add support for partial source suites via options --- britney.conf.template | 4 ++++ britney2/excusefinder.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/britney.conf.template b/britney.conf.template index 20f0754..b1df068 100644 --- a/britney.conf.template +++ b/britney.conf.template @@ -9,6 +9,10 @@ TESTING = /path/to/target/suite # TPU = /path/to/secondary-source/suite # PU = /path/to/another-source/suite +# By default, package removal propagates to the target suite. To disable this, +# e.g. for partial suites like experimental or spu, uncomment the next line +# PARTIAL_SOURCE = true + # Output NONINST_STATUS = /path/to/britneys-output-dir/non-installable-status EXCUSES_OUTPUT = /path/to/britneys-output-dir/excuses.html diff --git a/britney2/excusefinder.py b/britney2/excusefinder.py index 4f7cf9b..7455aaf 100644 --- a/britney2/excusefinder.py +++ b/britney2/excusefinder.py @@ -110,6 +110,8 @@ class ExcuseFinder(object): In the former case, a new excuse is appended to the object attribute excuses. """ + if hasattr(self.options, 'partial_source'): + return False # if the source package is available in unstable, then do nothing source_suite = self.suite_info.primary_source_suite pkg = item.package