From 375763f4cd302db19c672e475bc03b225d6740fd Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Wed, 17 Feb 2010 08:44:01 +0100 Subject: Add --no-clean option to ease debugging. --- make-sgpkg.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'make-sgpkg.py') 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) -- cgit v1.2.3