[migration] abort becomes possible when asked for confirmation before migration script
--- a/migration.py Wed Feb 10 15:49:20 2010 +0100
+++ b/migration.py Fri Feb 12 12:13:07 2010 +0100
@@ -70,8 +70,11 @@
ability to show the script's content
"""
while True:
- answer = ASK.ask('Execute %r ?' % scriptpath, ('Y','n','show'), 'Y')
- if answer == 'n':
+ answer = ASK.ask('Execute %r ?' % scriptpath,
+ ('Y','n','show','abort'), 'Y')
+ if answer == 'abort':
+ raise SystemExit(1)
+ elif answer == 'n':
return False
elif answer == 'show':
stream = open(scriptpath)