From: Ansgar Burchardt Date: Thu, 8 Nov 2012 07:22:02 +0000 (+0100) Subject: dak/import.py: use section_name variable where we need it X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d442dd081721fb734a6d5cf2197d799cb871ca6d;p=dak dak/import.py: use section_name variable where we need it --- 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,