From 7bba77726bc5fc4d75e4ceddc3e0fca2e61fbd93 Mon Sep 17 00:00:00 2001 From: Ivo De Decker Date: Wed, 9 Jan 2019 00:52:40 +0000 Subject: [PATCH] Always define source_t in apply_item_to_target_suite Signed-off-by: Ivo De Decker --- britney2/migration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/britney2/migration.py b/britney2/migration.py index fa5c658..b5bcf40 100644 --- a/britney2/migration.py +++ b/britney2/migration.py @@ -244,9 +244,9 @@ class MigrationManager(object): source_name, updates, rms, _ = self.compute_groups(item, removals=removals) + sources_t = target_suite.sources # Handle the source package if item.architecture == 'source': - sources_t = target_suite.sources undo['sources'][source_name] = sources_t.get(source_name) # add/update the source package