migration.py
changeset 4587 70d47389630c
parent 4553 23201259ffeb
child 4721 8f63691ccb7f
--- a/migration.py	Thu Feb 11 12:19:08 2010 +0100
+++ b/migration.py	Mon Feb 15 18:44:47 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)