This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 3.x development tree".
The branch, master has been updated via 356d79777494200c3170dc469ad62dac448b8f5a (commit) from b6f790fcb7b50bb2ed938e0a49ecdad2142d8f71 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 356d79777494200c3170dc469ad62dac448b8f5a Author: Michael Tremer michael.tremer@ipfire.org Date: Sun Oct 10 12:41:18 2010 +0200
naoki: Add shell feature on build error.
By passing --shell or -s to the build command, one will get a shell just right there where the build has stopped and will be able to debug.
After you leave the shell all data will be cleaned up.
-----------------------------------------------------------------------
Summary of changes: naoki/__init__.py | 2 ++ naoki/constants.py | 4 ++++ naoki/environ.py | 4 ++++ naoki/terminal.py | 1 + 4 files changed, 11 insertions(+), 0 deletions(-)
Difference in files: diff --git a/naoki/__init__.py b/naoki/__init__.py index f8719df..4b1c7fa 100644 --- a/naoki/__init__.py +++ b/naoki/__init__.py @@ -69,6 +69,8 @@ class Naoki(object): # Initialize job queue jobs = build.Jobs()
+ config["shell_on_failure"] = args.shell + if args.all: raise Exception, "XXX to be implemented" else: diff --git a/naoki/constants.py b/naoki/constants.py index 8316194..a64ceb8 100644 --- a/naoki/constants.py +++ b/naoki/constants.py @@ -4,6 +4,7 @@ from ConfigParser import ConfigParser, DEFAULTSECT import math import os import socket +import sys
BASEDIR = os.getcwd()
@@ -79,6 +80,9 @@ class Config(object): "cleanup_on_failure" : False, "cleanup_on_success" : True, # + # Shell settings + "shell_on_failure" : False, + # # CLI variables "debug" : False, "quiet" : False, diff --git a/naoki/environ.py b/naoki/environ.py index 2c32233..801212d 100644 --- a/naoki/environ.py +++ b/naoki/environ.py @@ -308,6 +308,10 @@ class Build(_Environment): try: self.make("package") except: + if config["shell_on_failure"]: + self.shell() + return + if config["cleanup_on_failure"]: self.clean()
diff --git a/naoki/terminal.py b/naoki/terminal.py index 43caa74..0e9fdb2 100644 --- a/naoki/terminal.py +++ b/naoki/terminal.py @@ -285,6 +285,7 @@ class Commandline(object): Option("all", ["--all"], help="Build all packages"), Option("ignore_dependency_errors", ["-i", "--ignore-dependency-errors"], help="Ignore dependency errors."), + Option("shell", ["-s", "--shell"], help="Enter a shell after unsuccessfull build."), List("packages", help="Give a list of packages to build."), ]),
hooks/post-receive -- IPFire 3.x development tree