提交 b9c06dc3 编写于 作者: L Luca Falavigna

end() is not defined in daklib/queue.py

Signed-off-by: NLuca Falavigna <dktrkranz@debian.org>
上级 ef9ed7cc
...@@ -532,11 +532,15 @@ def do_new(upload, upload_copy, handler, session): ...@@ -532,11 +532,15 @@ def do_new(upload, upload_copy, handler, session):
handler.reject(reason) handler.reject(reason)
done = True done = True
elif answer == 'N': elif answer == 'N':
edit_note(get_new_comments(upload.changes.source, session=session), if edit_note(get_new_comments(upload.changes.source, session=session),
upload, session, bool(Options["Trainee"])) upload, session, bool(Options["Trainee"])) == 0:
end()
sys.exit(0)
elif answer == 'P' and not Options["Trainee"]: elif answer == 'P' and not Options["Trainee"]:
prod_maintainer(get_new_comments(upload.changes.source, session=session), if prod_maintainer(get_new_comments(upload.changes.source, session=session),
upload) upload) == 0:
end()
sys.exit(0)
Logger.log(["NEW PROD", upload.changes.changesname]) Logger.log(["NEW PROD", upload.changes.changesname])
elif answer == 'R' and not Options["Trainee"]: elif answer == 'R' and not Options["Trainee"]:
confirm = utils.our_raw_input("Really clear note (y/N)? ").lower() confirm = utils.our_raw_input("Really clear note (y/N)? ").lower()
......
...@@ -132,8 +132,7 @@ def prod_maintainer(notes, upload): ...@@ -132,8 +132,7 @@ def prod_maintainer(notes, upload):
if answer == 'A': if answer == 'A':
return return
elif answer == 'Q': elif answer == 'Q':
end() return 0
sys.exit(0)
# Otherwise, do the proding... # Otherwise, do the proding...
user_email_address = utils.whoami() + " <%s>" % ( user_email_address = utils.whoami() + " <%s>" % (
cnf["Dinstall::MyAdminAddress"]) cnf["Dinstall::MyAdminAddress"])
...@@ -186,8 +185,7 @@ def edit_note(note, upload, session, trainee=False): ...@@ -186,8 +185,7 @@ def edit_note(note, upload, session, trainee=False):
if answer == 'A': if answer == 'A':
return return
elif answer == 'Q': elif answer == 'Q':
end() return 0
sys.exit(0)
comment = NewComment() comment = NewComment()
comment.package = upload.changes.source comment.package = upload.changes.source
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册