]> err.no Git - dak/commitdiff
daklib/archive.py (_binary_override): evaluate component mapping
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 4 Nov 2012 14:57:05 +0000 (15:57 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 4 Nov 2012 14:57:05 +0000 (15:57 +0100)
daklib/archive.py

index dd4a22ca3c376a6a890ad344e87823e13ea108ac..7243f31a884f36684044a767f19369a06b263a2e 100644 (file)
@@ -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: