From f0ddfc253fe2b1196265d8f6a96b7ce477c52792 Mon Sep 17 00:00:00 2001 From: Ivo De Decker Date: Tue, 11 Dec 2018 12:37:45 +0000 Subject: [PATCH] Fix parsing of migration item name for binNMU in tpu The parsing of migration items should also look for the suite name in the architecture part. This fixes the parsing for migration items like some-src/amd64_tpu and some-src/amd64_tpu/1.0-1 Signed-off-by: Ivo De Decker --- britney2/migrationitem.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/britney2/migrationitem.py b/britney2/migrationitem.py index 1122852..f6b1090 100644 --- a/britney2/migrationitem.py +++ b/britney2/migrationitem.py @@ -97,6 +97,9 @@ class MigrationItem(object): else: self._architecture = 'source' + if '_' in self._architecture: + self._architecture, suite_name = self._architecture.split('_', 2) + if self._version in self.__class__.get_architectures(): (self._architecture, self._version) = \ (self._version, self._architecture)