From e44b038ed76afff4234447e0b950d633c6c43565 Mon Sep 17 00:00:00 2001 From: "Adam D. Barratt" Date: Wed, 9 Nov 2011 22:44:55 +0000 Subject: [PATCH] Correctly parse foo/arch/ver in unversionned mode Signed-off-by: Adam D. Barratt --- migrationitem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrationitem.py b/migrationitem.py index 56b472c..3bb1189 100644 --- a/migrationitem.py +++ b/migrationitem.py @@ -66,7 +66,7 @@ class MigrationItem: self._architecture = 'source' self._version = parts[1] else: - if len(parts) == 2: + if len(parts) >= 2: self._architecture = parts[1] else: self._architecture = 'source'