[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] 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.
---
 daklib/policy.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/daklib/policy.py b/daklib/policy.py
index d4bd4a8..151cc9b 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)
-- 
1.7.2.5


Reply to: