Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/cerbero/commands/wipe.py b/cerbero/commands/wipe.py
- index 3296ed8..d6af77d 100644
- --- a/cerbero/commands/wipe.py
- +++ b/cerbero/commands/wipe.py
- @@ -59,7 +59,7 @@ class Wipe(Command):
- "the sources directory and the builds directory "
- "to reset the build system to its initial state.\n"
- "The following paths will be removed:\n%s\n"
- - "Do you want to continue? " % '\n'.join(to_remove))
- + "Do you want to continue?" % '\n'.join(to_remove))
- # Ask once
- if shell.prompt(msg, options) == options[0]:
- msg = _("Are you sure?")
- diff --git a/cerbero/utils/shell.py b/cerbero/utils/shell.py
- index ef335ee..0a99fa8 100644
- --- a/cerbero/utils/shell.py
- +++ b/cerbero/utils/shell.py
- @@ -233,7 +233,7 @@ def find_files(pattern, prefix):
- def prompt(message, options=[]):
- ''' Prompts the user for input with the message and options '''
- if len(options) != 0:
- - message = "%s [%s]" % (message, '/'.join(options))
- + message = "%s [%s] " % (message, '/'.join(options))
- res = raw_input(message)
- while res not in [str(x) for x in options]:
- res = raw_input(message)
Add Comment
Please, Sign In to add comment