branch | stable |
changeset 4553 | 23201259ffeb |
parent 4252 | 6c4f109c2b03 |
child 4721 | 8f63691ccb7f |
--- 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)