From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 321E91399CE for ; Thu, 3 Sep 2015 15:14:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E1BA9142E2; Thu, 3 Sep 2015 15:14:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 97F071419B for ; Thu, 3 Sep 2015 15:14:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9D2ED3408AC for ; Thu, 3 Sep 2015 15:14:12 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E69F517D for ; Thu, 3 Sep 2015 15:14:10 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1441227591.5d253b20dc206c3de4c9b96b01fc4dd507aaadf7.dolsen@gentoo> Subject: [gentoo-commits] proj/catalyst:pending commit in: catalyst/base/ X-VCS-Repository: proj/catalyst X-VCS-Files: catalyst/base/stagebase.py X-VCS-Directories: catalyst/base/ X-VCS-Committer: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 5d253b20dc206c3de4c9b96b01fc4dd507aaadf7 X-VCS-Branch: pending Date: Thu, 3 Sep 2015 15:14:10 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1eb937d2-b286-454e-8bb5-c968b69b16b7 X-Archives-Hash: 2dcb8f44e88cb9017004a4657819d859 commit: 5d253b20dc206c3de4c9b96b01fc4dd507aaadf7 Author: Brian Dolbec gentoo org> AuthorDate: Wed Sep 2 20:59:51 2015 +0000 Commit: Brian Dolbec gentoo 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D08171399E0 for ; Wed, 2 Sep 2015 21:00:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8B1FE141E5; Wed, 2 Sep 2015 21:00:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 40EFB141E5 for ; Wed, 2 Sep 2015 21:00:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E4437340924 for ; Wed, 2 Sep 2015 21:00:12 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A534B164 for ; Wed, 2 Sep 2015 21:00:10 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1441227591.5d253b20dc206c3de4c9b96b01fc4dd507aaadf7.dolsen@gentoo> Subject: [gentoo-commits] proj/catalyst:master commit in: catalyst/base/ X-VCS-Repository: proj/catalyst X-VCS-Files: catalyst/base/stagebase.py X-VCS-Directories: catalyst/base/ X-VCS-Committer: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 5d253b20dc206c3de4c9b96b01fc4dd507aaadf7 X-VCS-Branch: master Date: Wed, 2 Sep 2015 21:00:10 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 6399ac87-9be8-4bbb-8771-954c2cb20483 X-Archives-Hash: 599a5e8882706f57a76f138f2a890dc7 Message-ID: <20150902210010.UXtkZ0L5l6FZwZxjwYzl5DENiGVsY47u2d_pcxbLyfU@z> commit: 5d253b20dc206c3de4c9b96b01fc4dd507aaadf7 Author: Brian Dolbec gentoo org> AuthorDate: Wed Sep 2 20:59:51 2015 +0000 Commit: Brian Dolbec gentoo 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