]> err.no Git - dak/commitdiff
dak/import.py: use section_name variable where we need it
authorAnsgar Burchardt <ansgar@debian.org>
Thu, 8 Nov 2012 07:22:02 +0000 (08:22 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Thu, 8 Nov 2012 07:22:02 +0000 (08:22 +0100)
dak/import.py

index c9722933d55d56583cc3cb1fed7d73cb54f10791..ab5240d546007ef17de481c6ef24d176f6d12d1d 100644 (file)
@@ -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,