summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2010-02-17 08:44:01 +0100
committerGuido Günther <agx@sigxcpu.org>2010-02-17 08:44:01 +0100
commit375763f4cd302db19c672e475bc03b225d6740fd (patch)
tree9c78a752a7e17ccbbf8d9d60138f8656f8adb422
parenta169e6ddae2746b0de595d0e08da7a1aa93fbc5a (diff)
Add --no-clean option
to ease debugging.
-rw-r--r--make-sgpkg.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/make-sgpkg.py b/make-sgpkg.py
index 5a883aa..7da829e 100644
--- a/make-sgpkg.py
+++ b/make-sgpkg.py
@@ -177,6 +177,8 @@ def main(argv):
help="full name used in the maintainer field of the package")
parser.add_option("--email", default="agx@sigxpcu.org",
help="email address used in the maintainer field of the package")
+ parser.add_option("--no-clean", action="store_false", dest="clean", default=True,
+ help="don't cleanup after build")
(options, args) = parser.parse_args(argv[1:])
verbose = options.verbose
@@ -226,7 +228,7 @@ def main(argv):
print "Created '%s'" % pkg
ret = 0
- if tmpdir:
+ if tmpdir and options.clean:
if verbose:
print "Cleaning up tempdir at %s" % tmpdir
shutil.rmtree(tmpdir)