From f5a2bb5206319a10e731075c3db42b52ef486d5e Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Mon, 5 Jan 2015 23:07:25 +0100 Subject: [PATCH] process-policy: Apply component mappings. --- dak/process_policy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) \ -- 2.39.5