diff options
author | Guido Guenther <agx@sigxcpu.org> | 2008-05-08 17:58:49 +0200 |
---|---|---|
committer | Guido Guenther <agx@sigxcpu.org> | 2008-05-08 17:58:49 +0200 |
commit | 673911779507dffcab2fda52a0a7b8c5456eafd4 (patch) | |
tree | bedfed939ae721d5b9dab2f39a67d7583a60c060 /git-buildpackage | |
parent | dc1333a7ab68689378b40e8484e7ee3de9eb6926 (diff) |
add --git-dont-purge to leave the exported build dir intact
Closes: #479848
Thanks: Kurt B. Kaiser for the patch
Diffstat (limited to 'git-buildpackage')
-rwxr-xr-x | git-buildpackage | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/git-buildpackage b/git-buildpackage index 62c96538..7b278af4 100755 --- a/git-buildpackage +++ b/git-buildpackage @@ -171,6 +171,8 @@ def main(argv): help="Use pristine-tar to create .orig.tar.gz", action="store_true") parser.add_option("--git-export", dest="treeish", default=default_tree, help="export treeish object TREEISH, default is '%s'" % default_tree) + parser.add_option("--git-dont-purge", action="store_false", dest="purge", default=True, + help="retain exported build directory after build") (options, args) = parser.parse_args(args) if options.verbose: @@ -270,7 +272,7 @@ def main(argv): print >>sys.stderr, err retval = 1 - if options.export_dir and not retval: + if options.export_dir and options.purge and not retval: RemoveTree(export_dir)() return retval |