[dak/master] use discard instead of remove
Uploads that do not include source would trigger an exception when
remove is used. discard does not raise an exception when the element
does not exist.
Signed-off-by: Ansgar Burchardt <ansgar@debian.org>
---
daklib/checks.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/daklib/checks.py b/daklib/checks.py
index adee624..209a094 100644
--- a/daklib/checks.py
+++ b/daklib/checks.py
@@ -387,7 +387,7 @@ class ACLCheck(Check):
raise Reject('Unknown source_acl access level {0} for fingerprint {1}'.format(source_acl.access_level, fingerprint.fingerprint))
bin_architectures = set(upload.changes.architectures)
- bin_architectures.remove('source')
+ bin_architectures.discard('source')
binary_acl = fingerprint.binary_acl
if binary_acl is None:
if len(bin_architectures) > 0:
--
1.7.2.5
Reply to: