From: Ansgar Burchardt Date: Mon, 5 Jan 2015 22:07:25 +0000 (+0100) Subject: process-policy: Apply component mappings. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=f5a2bb5206319a10e731075c3db42b52ef486d5e;p=dak.git process-policy: Apply component mappings. --- diff --git a/dak/process_policy.py b/dak/process_policy.py index c8c9f2d0..f053a6cf 100755 --- a/dak/process_policy.py +++ b/dak/process_policy.py @@ -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) \