提交 d57b459b 编写于 作者: J Julien Cristau

Add a check that upload.changes.byhand_files is sane

This lets us reject an upload up front rather than dying later in
process-upload.
上级 45565f58
......@@ -251,6 +251,11 @@ class ChangesCheck(Check):
except ParseMaintError as e:
raise Reject('{0}: Failed to parse Changed-By field: {1}'.format(changes.filename, e))
try:
changes.byhand_files
except daklib.upload.InvalidChangesException as e:
raise Reject('{0}'.format(e))
if len(changes.files) == 0:
raise Reject("Changes includes no files.")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册