From d442dd081721fb734a6d5cf2197d799cb871ca6d Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Thu, 8 Nov 2012 08:22:02 +0100 Subject: [PATCH] dak/import.py: use section_name variable where we need it --- dak/import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dak/import.py b/dak/import.py index c9722933..ab5240d5 100644 --- a/dak/import.py +++ b/dak/import.py @@ -76,7 +76,7 @@ def import_source(log, transaction, suite, component, directory, hashed_file, section_name = 'misc' if component.component_name != 'main': section_name = "{0}/{1}".format(component.component_name, section_name) - section = session.query(Section).filter_by(section=section).one() + section = session.query(Section).filter_by(section=section_name).one() priority = session.query(Priority).filter_by(priority='extra').one() override = Override(package=control.dsc['Source'], suite=overridesuite, component=component, -- 2.39.5