X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fpolicy.py;h=151cc9b6afc38677798542059844de6cefa06e40;hb=1934d926546cb051b6be97a7d1de53b1473ec962;hp=cfb0e1df0446dcf9a3bd8fc8a4ce705181ea7a5c;hpb=09a1a20566dcf84ca229b4339bd8f8080eb59afd;p=dak.git diff --git a/daklib/policy.py b/daklib/policy.py index cfb0e1df..151cc9b6 100644 --- a/daklib/policy.py +++ b/daklib/policy.py @@ -17,7 +17,7 @@ """module to process policy queue uploads""" from .config import Config -from .dbconn import BinaryMetadata, Component, MetadataKey, Override, OverrideType, get_mapped_component +from .dbconn import BinaryMetadata, Component, MetadataKey, Override, OverrideType, Suite, get_mapped_component from .fstransactions import FilesystemTransaction from .regexes import re_file_changes, re_file_safe import daklib.utils as utils @@ -255,7 +255,7 @@ class PolicyQueueUploadHandler(object): if section.find('/') != -1: component = section.split('/', 1)[0] override = self._binary_override(binary, component) - if override is None: + if override is None and not any(o['package'] == binary.package and o['type'] == binary.binarytype for o in missing): hint = hints_map.get((binary.binarytype, binary.package)) if hint is not None: missing.append(hint)