don't try to cleanup in case of tag_only
authorGuido Guenther <agx@sigxcpu.org>
Mon, 16 Jun 2008 09:15:59 +0000 (11:15 +0200)
committerGuido Guenther <agx@sigxcpu.org>
Mon, 16 Jun 2008 09:15:59 +0000 (11:15 +0200)
Closes: #486398
git-buildpackage

index 36eec28efc6e2a7ab40bfd003ace5b8c01aa3c8b..60272d98a87df200fc386d452d0cac15da6ed0e2 100755 (executable)
@@ -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