]> git.decadent.org.uk Git - dak.git/commitdiff
process-policy: Apply component mappings.
authorAnsgar Burchardt <ansgar@debian.org>
Mon, 5 Jan 2015 22:07:25 +0000 (23:07 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Mon, 5 Jan 2015 22:07:25 +0000 (23:07 +0100)
dak/process_policy.py

index c8c9f2d01070fd8785b05f2bd870a8b6254f8815..f053a6cfc990317881b9edb986a6b8cb1cad7833 100755 (executable)
@@ -136,13 +136,13 @@ def comment_accept(upload, srcqueue, comments, transaction):
         component_name = 'main'
         if section.find('/') != -1:
             component_name = section.split('/', 1)[0]
-        return session.query(Component).filter_by(component_name=component_name).one()
+        return get_mapped_component(component_name, session=session)
 
     def source_component_func(db_source):
         package_list = PackageList(db_source.proxy)
         component = source_component_from_package_list(package_list, upload.target_suite)
         if component is not None:
-            return component
+            return get_mapped_component(component, session=session)
 
         # Fallback for packages without Package-List field
         query = session.query(Override).filter_by(suite=overridesuite, package=db_source.source) \