From: Ansgar Burchardt Date: Sun, 4 Nov 2012 14:57:05 +0000 (+0100) Subject: daklib/archive.py (_binary_override): evaluate component mapping X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1934d926546cb051b6be97a7d1de53b1473ec962;p=dak daklib/archive.py (_binary_override): evaluate component mapping --- diff --git a/daklib/archive.py b/daklib/archive.py index dd4a22ca..7243f31a 100644 --- a/daklib/archive.py +++ b/daklib/archive.py @@ -803,8 +803,12 @@ class ArchiveUpload(object): if suite.overridesuite is not None: suite = self.session.query(Suite).filter_by(suite_name=suite.overridesuite).one() + mapped_component = get_mapped_component(binary.component) + if mapped_component is None: + return None + query = self.session.query(Override).filter_by(suite=suite, package=binary.control['Package']) \ - .join(Component).filter(Component.component_name == binary.component) \ + .join(Component).filter(Component.component_name == mapped_component.component_name) \ .join(OverrideType).filter(OverrideType.overridetype == binary.type) try: