git://git.onelab.eu
/
bootmanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
breakpoint messages always show up
[bootmanager.git]
/
source
/
utils.py
diff --git
a/source/utils.py
b/source/utils.py
index
70f37fd
..
e0f3c72
100644
(file)
--- a/
source/utils.py
+++ b/
source/utils.py
@@
-43,7
+43,7
@@
VERBOSE_MODE = True
# in seconds : if no input, proceed
PROMPT_TIMEOUT = 5
# in seconds : if no input, proceed
PROMPT_TIMEOUT = 5
-def prompt_for_breakpoint_mode
():
+def prompt_for_breakpoint_mode():
global BREAKPOINT_MODE
if PROMPT_MODE:
global BREAKPOINT_MODE
if PROMPT_MODE:
@@
-80,6
+80,9
@@
def breakpoint (message, cmd = None):
print(message)
os.system(cmd)
print(message)
os.system(cmd)
+ else:
+ print("Ignoring breakpoint (BREAKPOINT_MODE=False) : {}".format(message))
+
########################################
def makedirs(path):
########################################
def makedirs(path):
@@
-222,8
+225,8
@@
def sysexec_noerr(cmd, log=None, shell=False):
same as sysexec, but capture boot manager exceptions
"""
try:
same as sysexec, but capture boot manager exceptions
"""
try:
- rc= 0
- rc= sysexec(cmd, log, shell=shell)
+ rc
= 0
+ rc
= sysexec(cmd, log, shell=shell)
except BootManagerException as e:
pass
except BootManagerException as e:
pass