]> git.decadent.org.uk Git - dak.git/commitdiff
process-policy: pass component name to get_mapped_component
authorAnsgar Burchardt <ansgar@debian.org>
Tue, 6 Jan 2015 21:10:07 +0000 (22:10 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Tue, 6 Jan 2015 21:10:07 +0000 (22:10 +0100)
dak/process_policy.py

index 612a6d87a48b21c1131c1557d44e0c7b60a5a0fe..6ab2c8f8843bb6d62500bc8f4dc8e308d82951a4 100755 (executable)
@@ -144,7 +144,7 @@ def comment_accept(upload, srcqueue, comments, transaction):
         package_list = PackageList(db_source.proxy)
         component = source_component_from_package_list(package_list, upload.target_suite)
         if component is not None:
-            return get_mapped_component(component, session=session)
+            return get_mapped_component(component.component_name, session=session)
 
         # Fallback for packages without Package-List field
         query = session.query(Override).filter_by(suite=overridesuite, package=db_source.source) \