From c30ecbb7e85cc2bd2eb84303d93eb655d7443011 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sun, 20 Jan 2019 15:44:05 +0000 Subject: [PATCH] Skip cruft on source migration / removal items Signed-off-by: Niels Thykier --- britney2/migration.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/britney2/migration.py b/britney2/migration.py index 90ef9e6..a648e24 100644 --- a/britney2/migration.py +++ b/britney2/migration.py @@ -183,8 +183,9 @@ class MigrationManager(object): if item.architecture == 'source' and item.is_removal and binary not in binaries_t[parch]: continue - # Do not include hijacked binaries - if binaries_t[parch][binary].source != source_name: + bin_data = binaries_t[parch][binary] + # Do not include hijacked binaries nor cruft (cruft is handled separately) + if bin_data.source != source_name or bin_data.source_version != source_data.version: continue bins.append(pkg_id)