From 9b24a1d4e7c68c2f858ab1d47cee88ddf818127d Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sun, 15 Jun 2014 21:57:24 +0200 Subject: [PATCH] britney.py: Fix use of undefined variable A currently dead branch in _compute_group uses an undefined local variable. Signed-off-by: Niels Thykier --- britney.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/britney.py b/britney.py index b229542..07850a0 100755 --- a/britney.py +++ b/britney.py @@ -1871,8 +1871,8 @@ class Britney(object): # single binary removal; used for clearing up after smooth # updates but not supported as a manual hint - elif source_name in binaries_t[item.architecture][0]: - version = binaries_t[item.architecture][0][source_name][VERSION] + elif source_name in binaries_t[migration_architecture][0]: + version = binaries_t[migration_architecture][0][source_name][VERSION] rms.add((source_name, version, migration_architecture)) # add the new binary packages (if we are not removing)