Description: Fail with an error message if the unpack directory "ketchup-tmp"
 already exists.
Author: Johann Felix Soden <johfel@gmx.de>

---
 ketchup |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

--- a/ketchup
+++ b/ketchup
@@ -667,6 +667,9 @@
 
 def untar(tarfile):
     old = os.getcwd()
+    if os.path.exists("ketchup-tmp"):
+        error("Please remove the ketchup-tmp directory by hand.")
+        sys.exit(-1)
     os.mkdir("ketchup-tmp")
     os.chdir("ketchup-tmp")
 
