summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Guenther <agx@sigxcpu.org>2008-06-16 11:15:59 +0200
committerGuido Guenther <agx@sigxcpu.org>2008-06-16 11:15:59 +0200
commit6008c37c20674e922811ab83b68ccac0a87bd834 (patch)
tree891492c6824b86e377f8adc866d9189fb0aba141
parent6ccb66c4bac51dfbbbe74788b8978e057cc897d5 (diff)
don't try to cleanup in case of tag_only
Closes: #486398
-rwxr-xr-xgit-buildpackage5
1 files changed, 3 insertions, 2 deletions
diff --git a/git-buildpackage b/git-buildpackage
index 36eec28e..60272d98 100755
--- a/git-buildpackage
+++ b/git-buildpackage
@@ -280,8 +280,9 @@ def main(argv):
print >>sys.stderr, err
retval = 1
- if options.export_dir and options.purge and not retval:
- RemoveTree(export_dir)()
+ if not options.tag_only:
+ if options.export_dir and options.purge and not retval:
+ RemoveTree(export_dir)()
return retval