Guest User

Untitled

a guest
Aug 19th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. diff --git a/cerbero/commands/wipe.py b/cerbero/commands/wipe.py
  2. index 3296ed8..d6af77d 100644
  3. --- a/cerbero/commands/wipe.py
  4. +++ b/cerbero/commands/wipe.py
  5. @@ -59,7 +59,7 @@ class Wipe(Command):
  6. "the sources directory and the builds directory "
  7. "to reset the build system to its initial state.\n"
  8. "The following paths will be removed:\n%s\n"
  9. - "Do you want to continue? " % '\n'.join(to_remove))
  10. + "Do you want to continue?" % '\n'.join(to_remove))
  11. # Ask once
  12. if shell.prompt(msg, options) == options[0]:
  13. msg = _("Are you sure?")
  14. diff --git a/cerbero/utils/shell.py b/cerbero/utils/shell.py
  15. index ef335ee..0a99fa8 100644
  16. --- a/cerbero/utils/shell.py
  17. +++ b/cerbero/utils/shell.py
  18. @@ -233,7 +233,7 @@ def find_files(pattern, prefix):
  19. def prompt(message, options=[]):
  20. ''' Prompts the user for input with the message and options '''
  21. if len(options) != 0:
  22. - message = "%s [%s]" % (message, '/'.join(options))
  23. + message = "%s [%s] " % (message, '/'.join(options))
  24. res = raw_input(message)
  25. while res not in [str(x) for x in options]:
  26. res = raw_input(message)
Add Comment
Please, Sign In to add comment