]> git.decadent.org.uk Git - dak.git/commitdiff
daklib/policy.py: don't list missing overrides for each arch
authorAnsgar Burchardt <ansgar@debian.org>
Mon, 24 Sep 2012 21:31:38 +0000 (23:31 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Mon, 24 Sep 2012 21:31:38 +0000 (23:31 +0200)
If an upload include binary packages for multiple architectures, dak
should only display (and add) the missing overrides once.

daklib/policy.py

index d4bd4a81c37c1a55b90fbde24c71b4926948167d..151cc9b6afc38677798542059844de6cefa06e40 100644 (file)
@@ -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)