X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=daklib%2Fpolicy.py;h=943d5686659182e29de49b1e327b2bdbedc7270f;hb=3f30db148883ec2970543f0e2a3aba74f1c3d754;hp=1c6327695766b75ca1297c9a173f90bacc898507;hpb=3b13cf984701df7e1167f12ca20394f8891a62ba;p=dak.git diff --git a/daklib/policy.py b/daklib/policy.py index 1c632769..943d5686 100644 --- a/daklib/policy.py +++ b/daklib/policy.py @@ -249,7 +249,7 @@ class PolicyQueueUploadHandler(object): hints = [] hints_map = dict([ ((o['type'], o['package']), o) for o in hints ]) - def check_override(name, type, priority, section): + def check_override(name, type, priority, section, included): component = 'main' if section.find('/') != -1: component = section.split('/', 1)[0] @@ -266,6 +266,7 @@ class PolicyQueueUploadHandler(object): section = section, component = component, type = type, + included = included )) components.add(component) @@ -273,7 +274,7 @@ class PolicyQueueUploadHandler(object): binary_proxy = binary.proxy priority = binary_proxy['Priority'] section = binary_proxy['Section'] - check_override(binary.package, binary.binarytype, priority, section) + check_override(binary.package, binary.binarytype, priority, section, included=True) if source is not None: source_proxy = source.proxy @@ -281,7 +282,7 @@ class PolicyQueueUploadHandler(object): if not package_list.fallback: packages = package_list.packages_for_suite(self.upload.target_suite) for p in packages: - check_override(p.name, p.type, p.priority, p.section) + check_override(p.name, p.type, p.priority, p.section, included=False) source_component = '(unknown)' for component, in self.session.query(Component.component_name).order_by(Component.ordering): @@ -310,6 +311,7 @@ class PolicyQueueUploadHandler(object): section = section, component = source_component, type = 'dsc', + included = True, )) return missing