From: Ansgar Burchardt Date: Mon, 24 Sep 2012 21:31:38 +0000 (+0200) Subject: daklib/policy.py: don't list missing overrides for each arch X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a767b0167a7ed2bda154a200114187fabbaae207;p=dak daklib/policy.py: don't list missing overrides for each arch If an upload include binary packages for multiple architectures, dak should only display (and add) the missing overrides once. --- diff --git a/daklib/policy.py b/daklib/policy.py index d4bd4a81..151cc9b6 100644 --- a/daklib/policy.py +++ b/daklib/policy.py @@ -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)