From: Ansgar Burchardt Date: Tue, 6 Jan 2015 21:10:07 +0000 (+0100) Subject: process-policy: pass component name to get_mapped_component X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=4523a6081d88273dedfd3bf6a1cf63739f9a06f3;p=dak.git process-policy: pass component name to get_mapped_component --- diff --git a/dak/process_policy.py b/dak/process_policy.py index 612a6d87..6ab2c8f8 100755 --- a/dak/process_policy.py +++ b/dak/process_policy.py @@ -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) \