[dak/master] dak/import.py: use section_name variable where we need it
---
dak/import.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dak/import.py b/dak/import.py
index c972293..ab5240d 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,
--
1.7.2.5
Reply to: