Ansgar pushed to branch master at Debian FTP Team / dak
Commits:
-
2986770e
by Ansgar at 2023-05-13T10:17:20+02:00
2 changed files:
Changes:
... | ... | @@ -99,7 +99,7 @@ def import_binary(log, transaction, suite, component, directory, hashed_file, fi |
99 | 99 | overridetype = session.query(OverrideType).filter_by(overridetype=binary.type).one()
|
100 | 100 | overridesuite = suite.get_overridesuite()
|
101 | 101 | section = session.query(Section).filter_by(section=binary.control['Section']).one()
|
102 | - priority = session.query(Priority).filter_by(priority=binary.control['Priority']).one()
|
|
102 | + priority = session.query(Priority).filter_by(priority=binary.control.get('Priority', 'optional')).one()
|
|
103 | 103 | |
104 | 104 | override = Override(package=binary.control['Package'], suite=overridesuite, component=component,
|
105 | 105 | section=section, priority=priority, overridetype=overridetype)
|
... | ... | @@ -263,7 +263,7 @@ class PolicyQueueUploadHandler: |
263 | 263 | |
264 | 264 | for binary in self.upload.binaries:
|
265 | 265 | binary_proxy = binary.proxy
|
266 | - priority = binary_proxy['Priority']
|
|
266 | + priority = binary_proxy.get('Priority', 'optional')
|
|
267 | 267 | section = binary_proxy['Section']
|
268 | 268 | check_override(binary.package, binary.binarytype, priority, section, included=True)
|
269 | 269 |