commit: 5d253b20dc206c3de4c9b96b01fc4dd507aaadf7 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> AuthorDate: Wed Sep 2 20:59:51 2015 +0000 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> CommitDate: Wed Sep 2 20:59:51 2015 +0000 URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=5d253b20
stagebase.py: Add a _debub_pause_ finction It can then be inserted into the action_sequence assignments to do troubleshooting and other debug snooping to determine where a problem is occuring. eg: def set_action_sequence(self): self.settings["action_sequence"]=["unpack","unpack_snapshot",\ "config_profile_link","setup_confdir","portage_overlay",\ "bind","chroot_setup", "_debug_pause_","setup_environment", "_debug_pause_", "build_packages", ...] catalyst/base/stagebase.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py index 25e5b6c..c0bafc2 100644 --- a/catalyst/base/stagebase.py +++ b/catalyst/base/stagebase.py @@ -21,6 +21,11 @@ from catalyst.lock import LockDir from catalyst.fileops import ensure_dirs, pjoin from catalyst.base.resume import AutoResume +if sys.version_info[0] >= 3: + py_input = input +else: + py_input = raw_input + class StageBase(TargetBase, ClearBase, GenBase): """ @@ -1624,4 +1629,7 @@ class StageBase(TargetBase, ClearBase, GenBase): self.unbind() raise CatalystError("build aborting due to livecd_update error.") + def _debug_pause_(self): + py_input("press any key to continue: ") + # vim: ts=4 sw=4 sta et sts=4 ai