From 8d5805b8de9e6525bd608c52784203a9c8b81c0b Mon Sep 17 00:00:00 2001 From: Ivo De Decker Date: Thu, 3 Oct 2019 21:10:49 +0000 Subject: [PATCH] Don't allow smooth update if section not in s-u config Signed-off-by: Ivo De Decker --- britney2/utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/britney2/utils.py b/britney2/utils.py index 1012208..a72ff5f 100644 --- a/britney2/utils.py +++ b/britney2/utils.py @@ -726,7 +726,6 @@ def find_smooth_updateable_binaries(binaries_to_check, for pkg_id in binaries_to_check: binary, _, parch = pkg_id - cruft = False cruftbins = set() # Not a candidate for smooth up date (newer non-cruft version in unstable) @@ -734,10 +733,9 @@ def find_smooth_updateable_binaries(binaries_to_check, if binaries_s[parch][binary].source_version == source_data.version: continue cruftbins.add(binaries_s[parch][binary].pkg_id) - cruft = True # Maybe a candidate (cruft or removed binary): check if config allows us to smooth update it. - if cruft or 'ALL' in smooth_updates or binaries_t[parch][binary].section in smooth_updates: + if 'ALL' in smooth_updates or binaries_t[parch][binary].section in smooth_updates: # if the package has reverse-dependencies which are # built from other sources, it's a valid candidate for # a smooth update. if not, it may still be a valid